Update module github.com/Azure/azure-sdk-for-go/sdk/security/keyvault… #440
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.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 |