Skip to content

Commit

Permalink
Merge pull request #13 from upfluence/xg/DRA-2152/updateci
Browse files Browse the repository at this point in the history
.github/workflows/*.yml: update action versions; add auto-release
  • Loading branch information
xgoffin authored Jan 15, 2025
2 parents b4056a4 + f09ef82 commit 691ec90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,24 @@ jobs:

steps:
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache: false
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Cache Modules
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-v1-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: go test -p 1 -v ./...

release:
needs: test
if: github.ref == 'refs/heads/master'
uses: upfluence/actions/.github/workflows/lib-any-release.yml@master
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
timeout-minutes: 30
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v4
- name: golanci-lint
uses: upfluence/action-golangci-lint@master
with:
Expand Down

0 comments on commit 691ec90

Please sign in to comment.