Skip to content

Commit

Permalink
ci: check format, lint and tests (#11)
Browse files Browse the repository at this point in the history
* ci: check format, lint and tests

* use windows

* use macos
  • Loading branch information
ryuapp authored Dec 12, 2024
1 parent 6c93c83 commit 5db595e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
ci:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v2

- name: Format
run: deno fmt --check

- name: Lint
run: deno lint

- name: Test
run: deno task test
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- uses: actions/checkout@v4
- run: npx jsr publish
- run: npx jsr publish

0 comments on commit 5db595e

Please sign in to comment.