Skip to content

Commit

Permalink
Customize test command for each template
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Nov 14, 2023
1 parent fd6d12f commit 4b0fe23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
matrix:
template:
- name: default
command: python --version
test: nix develop --accept-flake-config -c python --version
- name: devenv
command: python --version
test: nix develop --accept-flake-config --impure -c python --version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,7 +24,7 @@ jobs:
id: mktemp
- run: nix flake init -t ${{ github.workspace }}#${{ matrix.template.name }}
working-directory: ${{ steps.mktemp.outputs.tmpdir }}
- run: nix develop --accept-flake-config -c ${{ matrix.template.command }}
- run: ${{ matrix.template.test }}
working-directory: ${{ steps.mktemp.outputs.tmpdir }}

test:
Expand Down

0 comments on commit 4b0fe23

Please sign in to comment.