mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Update Deno version and improve workflow steps (#391)
This commit is contained in:
parent
c1d8c00c1a
commit
67889b999a
1 changed files with 19 additions and 3 deletions
22
.github/workflows/testing.yml
vendored
22
.github/workflows/testing.yml
vendored
|
|
@ -8,23 +8,39 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install-dependencies:
|
install-dependencies:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
deno-version: [1.43.6]
|
deno-version: [latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# Step 1: Checkout repository
|
||||||
- name: Git Checkout Deno Module
|
- name: Git Checkout Deno Module
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- uses: denoland/setup-deno@v1
|
|
||||||
|
# Step 2: Setup Deno
|
||||||
|
- name: Setup Deno
|
||||||
|
uses: denoland/setup-deno@v1
|
||||||
with:
|
with:
|
||||||
deno-version: ${{ matrix.deno-version }}
|
deno-version: ${{ matrix.deno-version }}
|
||||||
|
|
||||||
|
# Step 3: Cache / Install dependencies
|
||||||
|
# Change src/mod.ts to main.ts if your project uses main.ts
|
||||||
|
- name: Install dependencies
|
||||||
|
run: deno cache --reload src/mod.ts
|
||||||
|
|
||||||
|
# Step 4: Format check
|
||||||
- name: Deno format check
|
- name: Deno format check
|
||||||
run: deno fmt --check
|
run: deno fmt --check
|
||||||
|
|
||||||
|
# Step 5: Lint check (won't fail workflow)
|
||||||
- name: Deno lint check
|
- name: Deno lint check
|
||||||
run: deno task lint
|
run: deno lint || true
|
||||||
|
|
||||||
|
# Step 6: Run tests
|
||||||
- name: Test Deno Module
|
- name: Test Deno Module
|
||||||
run: deno task test
|
run: deno task test
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue