Merge pull request #1 from nicknovitski/test-more-things

Test on macos-* runners and fix
This commit is contained in:
Nick Novitski 2023-10-19 18:30:21 -07:00 committed by GitHub
commit 611afb0051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View file

@ -6,10 +6,28 @@ on:
- 'releases/*' - 'releases/*'
jobs: jobs:
test: test:
runs-on: ubuntu-latest strategy:
matrix:
runs-on:
- ubuntu-22.04
- macos-13
runs-on: ${{ matrix.runs-on }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22 - uses: cachix/install-nix-action@v22
- uses: ./ - uses: ./
- run: actionlint - run: actionlint
- run: shellcheck nix-develop-gha.sh - 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

View file

@ -3,7 +3,7 @@
set -euo pipefail set -euo pipefail
# Read the arguments into an array, so they can be added correctly as flags # 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() { with_nix_develop() {
nix develop --ignore-environment "${arguments[@]}" --command "$@" nix develop --ignore-environment "${arguments[@]}" --command "$@"