add support for deno serve #1640
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: Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Run tests | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Deno environment | |
uses: denoland/setup-deno@v1 | |
- name: Verify formatting | |
if: matrix.os == 'ubuntu-latest' | |
run: deno fmt --check | |
- name: Run linter | |
run: deno lint | |
- name: Run tests | |
run: deno task test | |
- name: Test upgrade | |
run: deno run -A cli.ts upgrade |