Update Nickel to 1.1.1 #186
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Templates | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
get-template-names: | |
name: Setup nix and nickel-nix | |
runs-on: ubuntu-latest | |
outputs: | |
templates: ${{ steps.templates.outputs.templates }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup | |
uses: ./.github/actions/common-setup | |
with: | |
SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CACHIX_TOKEN: ${{ secrets.CACHIX_TOKEN }} | |
- name: List all templates | |
id: templates | |
run: | | |
templates=$(nix eval .#templates --apply builtins.attrNames --json) | |
echo "templates=$templates" >> $GITHUB_OUTPUT | |
enter-devshells: | |
name: Test devshell ${{ matrix.template }} | |
needs: get-template-names | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
template: ${{ fromJSON(needs.get-template-names.outputs.templates) }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup | |
uses: ./.github/actions/common-setup | |
with: | |
SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CACHIX_TOKEN: ${{ secrets.CACHIX_TOKEN }} | |
- name: Test devshell ${{ matrix.template }} | |
run: | | |
nix run .#tests.templates.${{ matrix.template }} |