Skip to content

Commit

Permalink
Merge pull request #77 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 01ee56a + a37f660 commit 28bdf2b
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ jobs:
ln -s ../.bazelrc.local example/.bazelrc.local
ln -s ../../.bazelrc.local tests/alternative-deps/.bazelrc.local
- name: Build & test
run: nix-shell --pure --run 'bazel test --config=${{ matrix.ghc-version }} --test_output=all //...'
if: ${{ !matrix.enable-bzlmod }}
uses: tweag/run-nix-shell@v0
with:
run: bazel test --config=${{ matrix.ghc-version }} --test_output=all //...
- name: Test the example
run: |
cd example
Expand Down Expand Up @@ -125,15 +127,19 @@ jobs:
nix-shell --pure --run 'bazel run //:gazelle-update-repos --config=${{ matrix.ghc-version }}'
nix-shell --pure --run 'bazel test //... --config=${{ matrix.ghc-version }}'
- name: Test alternative dependencies
run: |
cd tests/alternative-deps
nix-shell --pure --run 'bazel run //:gazelle --config=${{ matrix.ghc-version }}'
nix-shell --pure --run 'bazel run //:gazelle-update-repos --config=${{ matrix.ghc-version }}'
nix-shell --pure --run 'bazel test //... --config=${{ matrix.ghc-version }}'
if: ${{ !matrix.enable-bzlmod }}
uses: tweag/run-nix-shell@v0
with:
working-directory: tests/alternative-deps
run: |
bazel run //:gazelle --config=${{ matrix.ghc-version }}
bazel run //:gazelle-update-repos --config=${{ matrix.ghc-version }}
bazel test //... --config=${{ matrix.ghc-version }}
- name: Test for buildifier suggestions
run: nix-shell --pure --run 'bazel run //:buildifier-diff'
if: ${{ !matrix.enable-bzlmod }}
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 28bdf2b

Please sign in to comment.