Skip to content

Commit

Permalink
refine workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lufia committed Mar 5, 2022
1 parent 29517a3 commit d19b4b3
Showing 1 changed file with 3 additions and 34 deletions.
37 changes: 3 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,8 @@ on:
branches:
- main
pull_request:
env:
GO111MODULE: on
schedule:
- cron: '0 14 10 * *'
jobs:
test:
strategy:
matrix:
os: ['ubuntu-18.04', 'windows-2019']
go: ['1.14.x']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- run: go test -race -covermode=atomic -coverprofile=prof.out
shell: bash
- uses: shogo82148/actions-goveralls@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-profile: prof.out
parallel: true
job-number: ${{ strategy.job-index }}
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
uses: lufia/workflows/.github/workflows/go-test.yml@main

0 comments on commit d19b4b3

Please sign in to comment.