Skip to content

Commit

Permalink
fix: separate Makefile checks into separate GitHub action job
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-ding committed Oct 19, 2022
1 parent 9a01a14 commit 17f8a02
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/code_format_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# We need to run the format checks on a Linux machine because gofmt
# asserts platform-specific line endings (see #259)
name: Code Format Checks
on: [push, pull_request]
jobs:
code_format_checks:
strategy:
matrix:
go: ['1.16']
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run Code Format Checks
run: |
make all
1 change: 0 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ jobs:
uses: actions/checkout@v2
- name: Run Windows Unit Tests
run: |
make all
go test -v -race ./pkg/...

0 comments on commit 17f8a02

Please sign in to comment.