Skip to content

Commit

Permalink
Fix pipeline (#62)
Browse files Browse the repository at this point in the history
* Run series of checks on every branch other than main

Run same checks on main and additionally the store action.

* Exclude filter didnt seem to work
  • Loading branch information
PossibleLlama authored Jan 19, 2021
1 parent 922bb84 commit 2eb243f
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/commit-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,63 @@ on:
branches: [ main ]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: make deps

- name: Build
run: make build-local

test:
name: Test
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: make deps

- name: Create folders
run: mkdir ~/.worklog && mkdir ~/.worklog-backup && touch ~/.worklog/a

- name: Test once
run: make test

format:
name: Format
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Check formatting
run: make format

store:
name: Store artifacts
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2eb243f

Please sign in to comment.