mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-13 11:56:58 +00:00
chore: migrate code to ESM (#73)
This commit is contained in:
41
.github/workflows/test.yml
vendored
41
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user