Skip to content

Add ci

Add ci #3

Workflow file for this run

name: check
on:
push:
branches: [main]
pull_request:
permissions:
content: read

Check failure on line 9 in .github/workflows/check.yml

View workflow run for this annotation

GitHub Actions / check

Invalid workflow file

The workflow is not valid. .github/workflows/check.yml (Line: 9, Col: 3): Unexpected value 'content'
jobs:
fmt:
runs-on: ubuntu-latest
name: fmt
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Nix
uses: cachix/install-nix-action@v24
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: fmt
run: nix develop .#ci --command alejandra -c .
eval:
runs-on: ubuntu-latest
name: eval
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Nix
uses: cachix/install-nix-action@v24
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: nix eval
run: |
nix eval --json .#deploy-sh.hosts --apply "builtins.mapAttrs (_: v: v.config.system.build.toplevel)"