Skip to content

Commit

Permalink
ci: use setup-go composite (#179)
Browse files Browse the repository at this point in the history
* ci(tests): use `setup-go` composite

Signed-off-by: Dwi Siswanto <[email protected]>

* ci(regression): use `setup-go` composite

Signed-off-by: Dwi Siswanto <[email protected]>

---------

Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 authored Mar 27, 2024
1 parent 39853f2 commit 92ece28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 92ece28

Please sign in to comment.