-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 903 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Build Go
name: Go package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: '1.18.2'
- name: Start Lowkey Vault
run: |
docker compose up -d
sleep 5
docker ps
if [ $(docker ps | grep nagyesta | wc -l) -ne 1 ]; then echo "ERROR: Some containers are not running"; exit 1; fi
- name: Test with go
env:
IDENTITY_ENDPOINT: http://localhost:8080/metadata/identity/oauth2/token
IDENTITY_HEADER: header
run: |
go test ./src -v
- name: Stop container
if: always()
run: |
docker compose down