add lint ci job #464
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
jobs: | |
lint: | |
runs-on: [self-hosted, linux, x64] | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Build & test release | |
env: | |
NIX_PATH: nixpkgs=channel:nixos-unstable | |
run: | | |
nix-shell --command "just lint" | |
build-and-test: | |
runs-on: [self-hosted, linux, x64] | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Build & test release | |
env: | |
NIX_PATH: nixpkgs=channel:nixos-unstable | |
run: | | |
nix-shell --command "just run-ci" |