Skip to content

Update actions/checkout action to v4.2.1 (#180) #408

Update actions/checkout action to v4.2.1 (#180)

Update actions/checkout action to v4.2.1 (#180) #408

Workflow file for this run

# 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
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