Skip to content

Commit 2d25dce

Browse files
authored
Merge pull request #25 from upfluence/xg/DRA-2152/updateci
.github/workflows: update CI action versions, add auto release
2 parents 90a4d99 + 81f4d35 commit 2d25dce

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/ci.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,19 @@ jobs:
1919
with:
2020
go-version: ${{ matrix.go }}
2121
- name: Checkout
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2323
- name: Cache Modules
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: ~/go/pkg/mod
2727
key: ${{ runner.os }}-go-v1-${{ hashFiles('**/go.sum') }}
2828
restore-keys: |
2929
${{ runner.os }}-go-
3030
- name: Run tests
3131
run: go test -v ./...
32+
33+
release:
34+
needs: test
35+
if: github.ref == 'refs/heads/master'
36+
uses: upfluence/actions/.github/workflows/lib-any-release.yml@master
37+
secrets: inherit

.github/workflows/lint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
timeout-minutes: 30
99
steps:
1010
- name: Install go
11-
uses: actions/setup-go@v2
11+
uses: actions/setup-go@v4
1212
with:
13-
go-version: v1.20
13+
go-version: 'v1.20'
1414
- name: Check out code
15-
uses: actions/checkout@v1
15+
uses: actions/checkout@v4
1616
- name: golanci-lint
1717
uses: upfluence/action-golangci-lint@master
1818
with:

0 commit comments

Comments
 (0)