From 5fc6b14e8b0a2985e8f151b1d8c6d05b8de44c43 Mon Sep 17 00:00:00 2001 From: ktong Date: Mon, 12 Feb 2024 20:14:03 -0800 Subject: [PATCH] revise action --- .github/workflows/benchmark.yml | 13 ------------- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 3 +-- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index d7e073b..54d0d4f 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -9,9 +9,6 @@ on: jobs: benchmark: - strategy: - matrix: - module: [ '' ] name: Benchmark runs-on: ubuntu-latest steps: @@ -22,13 +19,3 @@ jobs: cache-dependency-path: "**/go.sum" - name: Benchmark run: go test -v -bench=. -run=^$ ./... - working-directory: ${{ matrix.module }} - all: - if: ${{ always() }} - runs-on: ubuntu-latest - name: All Benchmarks - needs: benchmark - steps: - - name: Check benchmark matrix status - if: ${{ needs.benchmark.result != 'success' }} - run: exit 1 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8e1780d..422a085 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,7 +21,7 @@ jobs: go-version: 'stable' cache-dependency-path: "**/go.sum" - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: working-directory: ${{ matrix.module }} all: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a27194..4fa54c1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,10 +12,9 @@ jobs: strategy: matrix: module: [ '' ] - run-on: [ 'ubuntu', 'macOS', 'windows' ] go-version: [ 'stable', 'oldstable' ] name: Test - runs-on: ${{ matrix.run-on }}-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5