Skip to content

Commit

Permalink
Merge pull request #58 from tweag/cg/run-nix-shell
Browse files Browse the repository at this point in the history
chore: use `tweag/run-nix-shell`
  • Loading branch information
mergify[bot] authored Dec 13, 2023
2 parents 5d39b71 + 3895608 commit 4507a89
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,33 @@ jobs:
ln -s ../.bazelrc.local example/.bazelrc.local
ln -s ../../.bazelrc.local tests/alternative-deps/.bazelrc.local
- name: Build & test himportscan
run: nix-shell --pure --run 'bazel test //himportscan:tasty --config=${{ matrix.ghc-version }}'
uses: tweag/run-nix-shell@v0
with:
run: bazel test //himportscan:tasty --config=${{ matrix.ghc-version }}
- name: Build & run gazelle
run: cd example; nix-shell --pure --run 'bazel run //:gazelle --config=${{ matrix.ghc-version }}'
uses: tweag/run-nix-shell@v0
with:
working-directory: example
run: bazel run //:gazelle --config=${{ matrix.ghc-version }}
- name: Build & run gazelle fix
run: cd example; nix-shell --pure --run 'bazel run //:gazelle --config=${{ matrix.ghc-version }} -- fix'
uses: tweag/run-nix-shell@v0
with:
working-directory: example
run: bazel run //:gazelle --config=${{ matrix.ghc-version }} -- fix
- name: Build & test generated rules
run: cd example; nix-shell --pure --run 'bazel test //... --config=${{ matrix.ghc-version }}'
uses: tweag/run-nix-shell@v0
with:
working-directory: example
run: bazel test //... --config=${{ matrix.ghc-version }}
- name: Build & run gazelle with alternative dependencies
run: cd tests/alternative-deps; nix-shell --pure --run 'bazel run //:gazelle --config=${{ matrix.ghc-version }}'
uses: tweag/run-nix-shell@v0
with:
working-directory: tests/alternative-deps
run: bazel run //:gazelle --config=${{ matrix.ghc-version }}
- name: Test for buildifier suggestions
run: nix-shell --pure --run 'bazel run //:buildifier-diff'
uses: tweag/run-nix-shell@v0
with:
run: bazel run //:buildifier-diff

all_ci_tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4507a89

Please sign in to comment.