-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test-node: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: ["latest"] | ||
typescript: ["5.0", "latest"] | ||
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: yarn install | ||
- run: yarn add typescript@${{ matrix.typescript }} | ||
- run: yarn build | ||
- run: yarn test | ||
|
||
test-deno: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
deno: ["v1.x"] | ||
name: Test with Deno ${{ matrix.deno }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ matrix.deno }} | ||
- run: yarn install | ||
- run: yarn build:deno | ||
- run: deno --version | ||
- run: deno test | ||
working-directory: ./deno/lib | ||
- run: deno run ./index.ts | ||
working-directory: ./deno/lib | ||
- run: deno run ./mod.ts | ||
working-directory: ./deno/lib | ||
- run: | | ||
deno bundle ./mod.ts ./bundle.js | ||
deno run ./bundle.js | ||
working-directory: ./deno/lib | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: ["latest"] | ||
name: Lint on Node ${{ matrix.node }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: yarn install | ||
- run: yarn prettier:check | ||
- run: yarn lint:check |