use node native ts #280
Workflow file for this run
This file contains hidden or 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
name: Node.js CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v1 | |
- run: deno fmt --check | |
# TODO | |
# - run: deno lint | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js lts/* | |
uses: actions/setup-node@v3 | |
with: | |
cache: "npm" | |
node-version: "lts/*" | |
- run: npm ci | |
- run: node --run build | |
test: | |
strategy: | |
fail-fast: false # prevent a failure in other versions run cancelling others | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
node-version: ["22.x", "24.x"] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
cache: "npm" | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- uses: oven-sh/setup-bun@v1 | |
- run: corepack enable yarn | |
- run: npm ci | |
- run: node --run test |