Skip to content

Lock CI to Node.js v18.18 #2191

Lock CI to Node.js v18.18

Lock CI to Node.js v18.18 #2191

Workflow file for this run

name: build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
#############################################################################
# NODE
node:
runs-on: ubuntu-latest
strategy:
matrix:
# See: https://github.com/privatenumber/tsx/issues/354
node-version: [v18.18.x]
env:
CI: true
steps:
# Setup.
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
# Build.
- run: yarn install --frozen-lockfile
- run: yarn dist
# Test.
- run: yarn test --no-worker-threads # https://github.com/avajs/ava/discussions/3158
- run: yarn lint
#############################################################################
# DENO
deno:
runs-on: ubuntu-latest
env:
CI: true
NODE_VERSION: v18.18.x
steps:
# Setup.
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
# Build.
- run: yarn install --frozen-lockfile
- run: yarn dist
# Test.
- run: deno test --allow-read --config test/deno.json test/deno.test.ts
#############################################################################
# COVERAGE
coverage:
runs-on: ubuntu-latest
env:
CI: true
NODE_VERSION: v18.18.x
steps:
# Setup.
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
# Build.
- run: yarn install --frozen-lockfile
- run: yarn dist
# Coverage.
- run: yarn coverage --no-worker-threads # https://github.com/avajs/ava/discussions/3158
- run: yarn coverage:report
- uses: codecov/codecov-action@v3
with:
files: coverage/coverage.lcov