From 60d47f30ce5fd9abf3a4fe93684ebd4b79fa8871 Mon Sep 17 00:00:00 2001 From: lufia Date: Mon, 2 Oct 2023 18:35:03 +0900 Subject: [PATCH] use mackerelio/workflows@v1.0.2 --- .github/workflows/ci.yml | 39 +++------------------------------------ 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08d6510..18ad827 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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