Skip to content

Commit

Permalink
Merge pull request #1 from nicknovitski/test-more-things
Browse files Browse the repository at this point in the history
Test on macos-* runners and fix
  • Loading branch information
nicknovitski authored Oct 20, 2023
2 parents 2527420 + e8d0a33 commit 611afb0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,28 @@ on:
- 'releases/*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
runs-on:
- ubuntu-22.04
- macos-13
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
- uses: ./
- run: actionlint
- run: shellcheck nix-develop-gha.sh
test-determinate:
strategy:
matrix:
runs-on:
- ubuntu-22.04
- macos-13
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: ./
- run: actionlint
- run: shellcheck nix-develop-gha.sh
2 changes: 1 addition & 1 deletion nix-develop-gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail

# Read the arguments into an array, so they can be added correctly as flags
IFS=" " read -r -a arguments <<<"${@:-}"
IFS=" " read -r -a arguments <<<"${@:-./#default}"

with_nix_develop() {
nix develop --ignore-environment "${arguments[@]}" --command "$@"
Expand Down

0 comments on commit 611afb0

Please sign in to comment.