Skip to content

refactor: cleanup

refactor: cleanup #1

Workflow file for this run

name: ci
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
bun-test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
bun: [canary]
os:
- ubuntu-22.04
- windows-2022
- macOS-12
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ matrix.bun }}
- name: Install packages
run: bunx jsr add @cross/test @std/assert
- name: Run tests canary
run: bun test
deno-test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
deno: [canary]
os:
- ubuntu-22.04
- windows-2022
- macOS-12
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno }}
- name: Install packages
run: deno add @cross/test @std/assert
- name: Run tests
run: deno task test
node-test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
node: [21.x]
os:
- ubuntu-22.04
- windows-2022
- macOS-12
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install packages
run: npx jsr add @cross/test @std/assert
- name: Add package.json
run: "echo '{ \"type\": \"module\" }' > package.json"
- name: Run tests canary
run: npx --yes tsx --test
lint:
runs-on: ubuntu-22.04
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: canary
- name: Check linting
run: deno task lint