diff --git a/.github/workflows/regression.yaml b/.github/workflows/regression.yaml index 62b355d..7fa9d7c 100644 --- a/.github/workflows/regression.yaml +++ b/.github/workflows/regression.yaml @@ -19,10 +19,7 @@ jobs: out: benchmark.out steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v5 - with: - go-version-file: 'go.mod' - - run: go mod download + - uses: teler-sh/actions/setup-go@v1 - uses: kitabisa/teler-resources/cache@master - run: make bench-${{ matrix.phase }} | tee ${{ env.out }} - uses: actions/cache@v4 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index efc3ce0..d7eedce 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -32,10 +32,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: teler-sh/actions/resources@v1 with: - go-version: ${{ matrix.go-version }} - cache-dependency-path: '**/go.sum' + go-version: '${{ matrix.go-version }}' - uses: teler-sh/actions/resources@v1 - run: make ci if: (github.event_name != 'workflow_dispatch') @@ -68,10 +67,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 2 - - uses: actions/setup-go@v5 - with: - go-version-file: 'go.mod' - cache-dependency-path: '**/go.sum' + - uses: teler-sh/actions/setup-go@v1 - uses: teler-sh/actions/resources@v1 - run: make cover-all - name: Upload coverage to Codecov @@ -88,8 +84,6 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 2 - - uses: actions/setup-go@v5 - with: - go-version-file: 'go.mod' + - uses: teler-sh/actions/setup-go@v1 - run: go install -v github.com/palantir/go-license@latest - run: make license-verify \ No newline at end of file