Skip to content

Format with prettier #516

Format with prettier

Format with prettier #516

Workflow file for this run

# syntax: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: Deno
on:
push:
paths-ignore:
- '**.md'
- '.vscode/**'
- 'bundles/**'
- 'dev/**'
- 'readme/**'
pull_request:
paths-ignore:
- '**.md'
- '.vscode/**'
- 'bundles/**'
- 'dev/**'
- 'readme/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
deno: ['v1.x']
node-version: ['20.x']
name: Deno ${{ matrix.deno }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
# install node to run denoify.land
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# install deno to run the test
- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}
- name: Install Dependencies
run: |
rm -f package.json
rm -f package-lock.json
npm init -y
npm i -D typescript
npm i -D denoify
npm i -D rimraf
- name: Denoify
run: |
node_modules/.bin/rimraf deno_lib
node_modules/.bin/denoify
node_modules/.bin/rimraf deno_lib/bundles deno_lib/dev
- name: Run Tests
run: |
deno --version
deno test -c tsconfig.deno.json test/deno/**