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