-
-
Notifications
You must be signed in to change notification settings - Fork 495
32 lines (30 loc) · 876 Bytes
/
format-check.yml
File metadata and controls
32 lines (30 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: 📄 Check formatting
on:
push:
branches-ignore:
- release
tags-ignore:
- "*"
pull_request:
workflow_dispatch:
jobs:
format-check:
name: 📄 Check code formatting
runs-on: ubuntu-latest
steps:
- name: 🧰 Checkout code
uses: actions/checkout@v6
- name: ⚙️ Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: 🔒 Cache dependencies
uses: cachix/cachix-action@v17
with:
# https://app.cachix.org/cache/qownnotes-devenv
name: qownnotes-devenv
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: 🔧 Install devenv.sh
run: nix profile add nixpkgs#devenv
- name: 🔨 Build the devenv shell and run formating check
run: devenv shell "just format"