ci: verify that generated project can build and test #9
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
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.22' | |
- uses: bazel-contrib/[email protected] | |
with: | |
bazelisk-cache: true | |
repository-cache: true | |
- run: go install github.com/hay-kot/scaffold@710f210eeacdd6b61b9cbaf40630db1d5809a419 | |
- name: Scaffold new kitchen-sink app | |
run: | | |
cd $(mktemp -d) | |
scaffold new --preset=kitchen-sink --no-prompt $GITHUB_WORKSPACE | |
cd scaffold_test* | |
git init | |
bazel test ... | |
bazel run format |