-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 1.33 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
preset:
- kitchen-sink
- js
- py
- minimal
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/[email protected]
- name: Scaffold new app
id: scaffold
run: |
scaffold new --preset=${{ matrix.preset }} --no-prompt $GITHUB_WORKSPACE
cd scaffold_test*
git init
echo "::set-output name=dir::$PWD"
- run: bazel test ...
working-directory: "${{ steps.scaffold.outputs.dir }}"
- run: bazel run format
working-directory: "${{ steps.scaffold.outputs.dir }}"
if: "${{ matrix.preset != 'minimal' }}"
- run: bazel lint ...
working-directory: "${{ steps.scaffold.outputs.dir }}"