Update airlock v0.0.6 (#148) #455
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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v ./... | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
- name: Generate docs | |
run: go run main.go docs | |
- name: Test for changes | |
run: | | |
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then | |
git status --porcelain --untracked-files=no | |
echo "Generated docs changes not commited! Run 'mass docs' and commit changes" | |
exit 1 | |
fi |