chore: migrate code to ESM (#73)

This commit is contained in:
Luca Casonato
2024-09-13 17:15:41 +02:00
committed by GitHub
parent f8480e68ca
commit f1ac2c87b8
905 changed files with 69790 additions and 56120 deletions

View File

@@ -11,9 +11,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os:
- ubuntu-latest
- windows-latest
- macos-latest
deno:
[1.x, "1.33.1", canary, ~1.32, b290fd01f3f5d32f9d010fc719ced0240759c049, rc]
- "1.x"
- "1.33.1"
- "canary"
- "~1.32"
- "b290fd01f3f5d32f9d010fc719ced0240759c049"
- "rc"
steps:
- uses: actions/checkout@v3
@@ -38,14 +46,6 @@ jobs:
deno install --allow-net -n deno_curl https://deno.land/std@0.198.0/examples/curl.ts
deno_curl https://deno.land/std@0.198.0/examples/curl.ts
- name: Format
if: runner.os == 'Linux' && matrix.deno == 'canary'
run: npm run fmt:check
- name: Lint
if: runner.os == 'Linux' && matrix.deno == 'canary'
run: npm run lint
test-version-file:
runs-on: ubuntu-latest
strategy:
@@ -66,7 +66,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
@@ -77,3 +77,22 @@ jobs:
- name: Check binary exists
run: deno_foo -V
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Deno
uses: ./
with:
deno-version: "rc"
- name: Lint
run: deno lint
- name: Format
run: deno fmt --check
- name: Check types
run: deno check main.mjs