Skip to content

Commit

Permalink
Update the GitHub Actions CI config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Jan 21, 2025
1 parent 753f017 commit 032bcda
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 16 deletions.
52 changes: 36 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,44 @@
name: CI
on: [push, pull_request]
on: [push, workflow_dispatch]
env:
DENO_VERSION: "^2.1.6"
jobs:
format-check:
name: Format check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: ${{ env.DENO_VERSION }}
- run: deno fmt --check
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: ${{ env.DENO_VERSION }}
- run: deno lint
type-check:
name: Type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: ${{ env.DENO_VERSION }}
- run: ./scripts/type-check.sh
test:
name: Test with ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: "^2.1.6"
- name: Format check
run: deno fmt --check
- name: Lint
run: deno lint
- name: Type check
run: ./scripts/type-check.sh
- name: Test
run: ./scripts/test.sh
deno-version: ${{ env.DENO_VERSION }}
- run: ./scripts/test.sh
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@

### Patch

- Updated the GitHub Actions CI config:
- No longer run the workflow on pull request.
- Enable manual workflow dispatching.
- Run checks in seperate jobs.
- Removed custom step names.
- Use Deno v2.
- Updated actions/checkout to v4.
- Updated actions/setup-deno to v2.
- Updated the project and readme import maps for the latest React v18.3.1 URLs.
- Configured Deno to not auto-generate a lockfile.
- Fixed formatting issues caused by updating Deno.
Expand Down

0 comments on commit 032bcda

Please sign in to comment.