mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-12 00:48:49 +00:00
Try the magic cache, use -y with npx
This commit is contained in:
parent
fe5d5c2d87
commit
b810d3e969
11
.github/workflows/nix.yaml
vendored
11
.github/workflows/nix.yaml
vendored
@ -23,12 +23,9 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v22
|
- name: Install Nix
|
||||||
with:
|
uses: DeterminateSystems/nix-installer-action@v4
|
||||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
- name: Setup Nix Cache
|
||||||
- uses: cachix/cachix-action@v12
|
uses: DeterminateSystems/magic-nix-cache-action@v1
|
||||||
with:
|
|
||||||
name: conky
|
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
||||||
- run: nix build
|
- run: nix build
|
||||||
- run: nix flake check
|
- run: nix flake check
|
||||||
|
@ -3,7 +3,7 @@ pre-commit:
|
|||||||
commands:
|
commands:
|
||||||
web-linter:
|
web-linter:
|
||||||
run: |
|
run: |
|
||||||
npx eslint --fix {staged_files} \
|
npx -y eslint --fix {staged_files} \
|
||||||
&& git add {staged_files}
|
&& git add {staged_files}
|
||||||
root: web/
|
root: web/
|
||||||
glob: '*.{ts,tsx,js,jsx}'
|
glob: '*.{ts,tsx,js,jsx}'
|
||||||
@ -14,7 +14,7 @@ pre-commit:
|
|||||||
glob: '*.{c,cc,cxx,h,cpp}'
|
glob: '*.{c,cc,cxx,h,cpp}'
|
||||||
misc-linter:
|
misc-linter:
|
||||||
run: |
|
run: |
|
||||||
npx prettier --write {staged_files} \
|
npx -y prettier --write {staged_files} \
|
||||||
&& git add {staged_files}
|
&& git add {staged_files}
|
||||||
glob: '*.{md,json,yml,yaml}'
|
glob: '*.{md,json,yml,yaml}'
|
||||||
nix-linter:
|
nix-linter:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user