Skip to content

Commit

Permalink
use mackerelio/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
lufia committed Oct 2, 2023
1 parent 83d5bef commit 60d47f3
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/[email protected]
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/[email protected]

0 comments on commit 60d47f3

Please sign in to comment.