Skip to content

Commit

Permalink
removing check task and updating actions to setup-deno v2
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmelnicki committed Oct 19, 2024
1 parent c42d3f9 commit 5532a01
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 46 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,17 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5

strategy:
fail-fast: false
matrix:
deno: ["canary"]
os: [ubuntu-latest]
include:
- os: ubuntu-latest
cache_path: ~/.cache/deno
name: test
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}
deno-version: 2.x

- name: Verify formatting
run: deno fmt --check
Expand All @@ -36,7 +27,7 @@ jobs:
run: deno lint

- name: Check types
run: deno task check:types
run: deno check .

- name: Run tests
run: deno task test
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4

- name: Install deno
uses: denoland/setup-deno@v1
- name: Setup deno
uses: denoland/setup-deno@v2
with:
deno-version: canary
deno-version: 2.x

- name: Build step
run: deno task build
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on: [deployment_status]

jobs:
test:
name: test
name: e2e
runs-on: ubuntu-latest

timeout-minutes: 5
if: github.event.deployment_status.state == 'success' && github.event.deployment_status.creator.login == 'deno-deploy[bot]'

Expand All @@ -14,9 +15,9 @@ jobs:
uses: actions/checkout@v4

- name: Setup deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: canary
deno-version: v2.x

- name: Run e2e tests
run: deno task e2e -- --deployed
25 changes: 0 additions & 25 deletions .github/workflows/lighthouse.yml

This file was deleted.

1 change: 0 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"dev": "deno run -A --unstable-kv --watch=static/,routes/ dev.ts",
"build": "deno run -A --unstable-kv dev.ts build",
"preview": "deno run -A --unstable-kv main.ts",
"check:types": "deno check .",
"test": "deno test -A --unstable-kv --doc --ignore=e2e/",
"e2e": "deno test -A e2e/"
},
Expand Down

0 comments on commit 5532a01

Please sign in to comment.