We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b39392b commit d605841Copy full SHA for d605841
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,14 @@ 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
+ - run: |
41
+ if git diff --exit-code
42
+ then
43
+ echo Repository files have changed
44
+ echo You might need to run: nix-shell --run "\"bazel run //:gazelle\""
45
+ echo and commit the resulting changes.
46
+ exit 1
47
+ fi
48
49
run-tests-with-stack:
50
name: with stack
0 commit comments