Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use tweag/run-nix-shell #58

Merged
merged 2 commits into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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