Skip to content

Commit 8156e7e

Browse files
.github: Add release target
1 parent 03a1d87 commit 8156e7e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ci.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ jobs:
1010
test:
1111
name: Run Tests
1212
runs-on: ubuntu-20.04
13-
strategy:
14-
matrix:
15-
go: [ '1.22.x', '1.21.x' ]
1613
services:
1714
redis:
1815
image: redis
@@ -25,10 +22,10 @@ jobs:
2522
- 6379:6379
2623

2724
steps:
28-
- name: Install Go ${{ matrix.go }}
25+
- name: Install Go
2926
uses: actions/setup-go@v2
3027
with:
31-
go-version: ${{ matrix.go }}
28+
go-version: 1.22.x
3229
- name: Checkout
3330
uses: actions/checkout@v2
3431
- name: Cache Modules
@@ -41,4 +38,10 @@ jobs:
4138
- name: Run tests
4239
run: go test -p 1 -v ./...
4340
env:
44-
POSTGRES_URL: redis://localhost:6379/0
41+
REDIS_URL: redis://localhost:6379/0
42+
43+
release:
44+
needs: test
45+
if: github.ref == 'refs/heads/master'
46+
uses: upfluence/actions/.github/workflows/lib-any-release.yml@master
47+
secrets: inherit

0 commit comments

Comments
 (0)