Files
nixarr/.github/workflows/lint.yml
T
2025-12-02 10:57:55 +01:00

42 lines
895 B
YAML

name: Lint
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main, release**]
pull_request:
branches: [main, dev, release**]
# Allows us to run the workflow manually from the Actions tab
workflow_dispatch:
jobs:
fmt:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v3
- run: nix fmt -- --check .
build-website:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v3
- run: nix build
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- run: nix flake check