Fix README typo #306
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
name: ci | |
on: | |
push: | |
branches: [main] | |
tags: "*" | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: test-${{ matrix.os }}-${{ matrix.deno }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# Test on the latest stable, and canary | |
deno: [v1.x, canary] | |
os: [macOS-latest, windows-latest, ubuntu-latest] | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Setup repo | |
uses: actions/checkout@v4 | |
- name: Setup Deno | |
uses: denoland/setup-deno@main | |
with: | |
deno-version: "1.x" | |
- name: Install Rust | |
uses: dsherret/rust-toolchain-file@v1 | |
- run: deno --version | |
- name: Format | |
if: runner.os == 'Linux' | |
run: deno fmt --check | |
- name: Build Wasm | |
run: deno task wasmbuild | |
- name: Lint | |
if: runner.os == 'Linux' | |
run: deno lint | |
- name: Run tests | |
run: deno test -A | |
- name: Dry run publishing | |
if: runner.os == 'Linux' && matrix.deno == 'canary' | |
run: deno publish --dry-run | |
- name: Publish (on tag) | |
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/') && matrix.deno == 'canary' | |
run: deno publish |