ci: use nekowinston/setup-deno for caching (#348)
This commit is contained in:
1 parent
dc998eb14f
commit
7275c21f64
4 files changed
+5
-39
No files matched your search
@@ -8,9 +8,6 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
paths: ["**/*.ts"]
|
paths: ["**/*.ts"]
|
||||||
|
|
||||||
env:
|
|
||||||
DENO_DIR: /tmp/deno_cache
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deno-check:
|
deno-check:
|
||||||
name: Check Deno code
|
name: Check Deno code
|
||||||
@@ -20,16 +17,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Deno
|
- name: Setup Deno
|
||||||
uses: denoland/setup-deno@v1
|
uses: nekowinston/setup-deno@main
|
||||||
with:
|
with:
|
||||||
deno-version: v1.x
|
deno-version: v1.x
|
||||||
|
|
||||||
- name: Cache Deno dependencies
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
key: ${{ hashFiles('./deno.lock') }}
|
|
||||||
path: ${{ env.DENO_DIR }}
|
|
||||||
|
|
||||||
- name: Check
|
- name: Check
|
||||||
run: |
|
run: |
|
||||||
deno lint
|
deno lint
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ on:
|
|||||||
- "scripts/**/*"
|
- "scripts/**/*"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DENO_DIR: /tmp/deno_cache
|
|
||||||
HAS_USERSTYLES_TOKEN: ${{ secrets.USERSTYLES_TOKEN != '' }}
|
HAS_USERSTYLES_TOKEN: ${{ secrets.USERSTYLES_TOKEN != '' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -31,16 +30,10 @@ jobs:
|
|||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Setup Deno
|
- name: Setup Deno
|
||||||
uses: denoland/setup-deno@v1
|
uses: nekowinston/setup-deno@main
|
||||||
with:
|
with:
|
||||||
deno-version: v1.x
|
deno-version: v1.x
|
||||||
|
|
||||||
- name: Cache Deno dependencies
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
key: ${{ hashFiles('./deno.lock') }}
|
|
||||||
path: ${{ env.DENO_DIR }}
|
|
||||||
|
|
||||||
- name: Generate health files
|
- name: Generate health files
|
||||||
run: deno task ci:generate
|
run: deno task ci:generate
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
env:
|
|
||||||
DENO_DIR: /tmp/deno_cache
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Lint Userstyles
|
name: Lint Userstyles
|
||||||
@@ -18,15 +15,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Deno
|
- name: Setup Deno
|
||||||
uses: denoland/setup-deno@v1
|
uses: nekowinston/setup-deno@main
|
||||||
with:
|
with:
|
||||||
deno-version: v1.x
|
deno-version: v1.x
|
||||||
|
|
||||||
- name: Cache Deno dependencies
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
key: ${{ hashFiles('./deno.lock') }}
|
|
||||||
path: ${{ env.DENO_DIR }}
|
|
||||||
|
|
||||||
- name: Run Lint
|
- name: Run Lint
|
||||||
run: deno task lint
|
run: deno task lint
|
||||||
@@ -6,9 +6,6 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- "scripts/userstyles.yml"
|
- "scripts/userstyles.yml"
|
||||||
|
|
||||||
env:
|
|
||||||
DENO_DIR: /tmp/deno_cache
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync-maintainers:
|
sync-maintainers:
|
||||||
name: Sync maintainers
|
name: Sync maintainers
|
||||||
@@ -19,17 +16,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Set up Deno
|
- name: Setup Deno
|
||||||
uses: denoland/setup-deno@v1
|
uses: nekowinston/setup-deno@main
|
||||||
with:
|
with:
|
||||||
deno-version: v1.x
|
deno-version: v1.x
|
||||||
|
|
||||||
- name: Cache Deno dependencies
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
key: ${{ hashFiles('./deno.lock') }}
|
|
||||||
path: ${{ env.DENO_DIR }}
|
|
||||||
|
|
||||||
- name: Sync maintainers
|
- name: Sync maintainers
|
||||||
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
|
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
|
||||||
run: deno task ci:sync-maintainers
|
run: deno task ci:sync-maintainers
|
||||||
|
|||||||
Reference in new issue
Block a user