Skip to content

Commit

Permalink
Merge pull request #146 from mackerelio/use-wf
Browse files Browse the repository at this point in the history
use mackerelio/workflows@v1.0.2
  • Loading branch information
lufia committed Oct 6, 2023
2 parents 83d5bef + 60d47f3 commit 264b7b7
Showing 1 changed file with 3 additions and 36 deletions.
39 changes: 3 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,7 @@ on:
- master
pull_request:
jobs:
lint:
uses: mackerelio/workflows/.github/workflows/go-lint.yml@v1.0.2
test:
strategy:
matrix:
os: ['ubuntu-22.04', 'macOS-12', 'windows-2022']
go: ['1.19.x', '1.18.x']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- uses: golangci/golangci-lint-action@v3
with:
args: --timeout 5m
- run: |
go test -race -covermode atomic -coverprofile=profile.cov ./...
shell: bash
- uses: shogo82148/actions-goveralls@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-profile: profile.cov
parallel: true
flag-name: Go-${{ matrix.os }}-${{ matrix.go }}
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
uses: mackerelio/workflows/.github/workflows/go-test.yml@v1.0.2

0 comments on commit 264b7b7

Please sign in to comment.