fix: use cachix because github cache sucks
This commit is contained in:
parent
645faf398e
commit
b906e614ba
25
.github/workflows/lint.yml
vendored
25
.github/workflows/lint.yml
vendored
@ -15,19 +15,20 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install nix
|
||||||
uses: nixbuild/nix-quick-install-action@v30
|
uses: cachix/install-nix-action@v31
|
||||||
|
|
||||||
- name: Restore and save Nix store + go modules + node packages
|
|
||||||
uses: nix-community/cache-nix-action@v6
|
|
||||||
with:
|
with:
|
||||||
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
restore-prefixes-first-match: nix-${{ runner.os }}-
|
|
||||||
gc-max-store-size-linux: 1G
|
- name: Use cachix
|
||||||
purge: true
|
uses: cachix/cachix-action@v16
|
||||||
purge-prefixes: nix-${{ runner.os }}-
|
with:
|
||||||
purge-created: 0
|
name: trevstack
|
||||||
purge-primary-key: never
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
|
||||||
|
- name: Install npm packages
|
||||||
|
working-directory: ./client
|
||||||
|
run: npm ci --legacy-peer-deps
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: nix develop --command ts-lint
|
run: nix develop --command ts-lint
|
@ -72,9 +72,6 @@
|
|||||||
|
|
||||||
# Svelte frontend
|
# Svelte frontend
|
||||||
nodejs_22
|
nodejs_22
|
||||||
eslint
|
|
||||||
nodePackages.svelte-check
|
|
||||||
nodePackages.prettier
|
|
||||||
|
|
||||||
# Helper scripts
|
# Helper scripts
|
||||||
(writeShellApplication {
|
(writeShellApplication {
|
||||||
@ -183,9 +180,8 @@
|
|||||||
|
|
||||||
cd "''${git_root}/client"
|
cd "''${git_root}/client"
|
||||||
echo "Linting client"
|
echo "Linting client"
|
||||||
svelte-check --tsconfig ./tsconfig.json
|
npm run check
|
||||||
prettier --check .
|
npm run lint
|
||||||
eslint .
|
|
||||||
|
|
||||||
cd "''${git_root}/server"
|
cd "''${git_root}/server"
|
||||||
echo "Linting server"
|
echo "Linting server"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user