Skip to content

Commit

Permalink
ci: move tests to a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
esimov committed Oct 27, 2021
1 parent c151a99 commit 15b1286
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yml
@@ -1,4 +1,4 @@
name: install
name: CI

on:
push:
Expand Down Expand Up @@ -44,6 +44,24 @@ jobs:
- name: Build project
id: makefile
run: sudo make

- name: Test
run: go test -v ./core/... -run=. -cover
test:
name: Test
strategy:
matrix:
go-version: [~1.16, ~1.17]
platform:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Run tests
run: |
go test -v ./core/... -run=. -cover

0 comments on commit 15b1286

Please sign in to comment.