add config file existence check and improve ci #38
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
--- | |
name: test build | |
on: | |
push: | |
branches: [master] | |
paths: | |
- '**.go' | |
- 'go.mod' | |
pull_request: | |
branches: [master] | |
paths: | |
- '**.go' | |
- 'go.mod' | |
jobs: | |
go-build: | |
runs-on: ubuntu-latest | |
container: matthewschuchard/vault-api | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install prereqs | |
run: apk add --no-cache --update make | |
- name: build | |
run: make build | |
- name: bootstrap vault server | |
run: make bootstrap | |
- name: unit test | |
run: make unit |