-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: verify that generated project can build and test
- Loading branch information
Showing
2 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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/setup-bazel@0.8.2 | ||
with: | ||
bazelisk-cache: true | ||
repository-cache: true | ||
- run: go install github.com/hay-kot/scaffold@710f210eeacdd6b61b9cbaf40630db1d5809a419 | ||
- name: Scaffold new kitchen-sink app | ||
id: kitchen-sink | ||
run: | | ||
scaffold new --preset=kitchen-sink --no-prompt $GITHUB_WORKSPACE | ||
cd scaffold_test* | ||
git init | ||
echo "::set-output dir=$PWD" | ||
- name: Test kitchen-sink | ||
working-directory: "${{ steps.kitchen-sink.outputs.dir }}" | ||
run: | | ||
bazel test ... | ||
bazel run format |
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