Skip to content

Update Nickel to 1.1.1 #186

Update Nickel to 1.1.1

Update Nickel to 1.1.1 #186

Workflow file for this run

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 }}