We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f8ec5e commit 9806b24Copy full SHA for 9806b24
1 file changed
.github/workflows/build.yml
@@ -28,6 +28,7 @@ jobs:
28
restore-keys: |
29
repo-cache-${{ runner.os }}-nixpkgs-${{ env.cache-version }}-
30
- run: |
31
+ nix-shell --pure --run "bazel run $BAZEL_ARGS //:gazelle"
32
nix-shell --pure --run "bazel test --test_output=all //... $BAZEL_ARGS"
33
- uses: actions/cache/save@v3
34
if: github.ref == 'refs/heads/master'
@@ -36,6 +37,15 @@ jobs:
36
37
~/repo-cache
38
~/disk-cache
39
key: repo-cache-${{ runner.os }}-nixpkgs-${{ env.cache-version }}-${{ github.run_id }}-${{ github.run_attempt }}
40
+ - name: gazelle check
41
+ run: |
42
+ if ! git diff --exit-code
43
+ then
44
+ echo Repository files have changed
45
+ echo You might need to run: nix-shell --run "\"bazel run //:gazelle\""
46
+ echo and commit the resulting changes.
47
+ exit 1
48
+ fi
49
50
run-tests-with-stack:
51
name: with stack
0 commit comments