Skip to content

Update actions/checkout action to v4.2.2 (#127) #156

Update actions/checkout action to v4.2.2 (#127)

Update actions/checkout action to v4.2.2 (#127) #156

Workflow file for this run

name: demo/parser
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
bun:
runs-on: ubuntu-latest
defaults:
run:
working-directory: demo/parser
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- name: Setup Bun
uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7 # v1
- run: bun install
- run: npm run bun:build
- run: ./bin/cli --debug -- hanoi
- run: npm run bun:run -- --debug -- hanoi
deno:
runs-on: ubuntu-latest
defaults:
run:
working-directory: demo/parser
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- name: Setup Deno
uses: denoland/setup-deno@5e01c016a857a4dbb5afe9d0f9733cd472cba985 # v1.5.1
- run: npm run deno:compile
- run: ./bin/cli --debug -- hanoi
- run: npm run deno:run -- --debug -- hanoi
node:
runs-on: ubuntu-latest
defaults:
run:
working-directory: demo/parser
strategy:
matrix:
node-version:
# TODO: re-enable v16, v18 when OOM is fixed
# - 16.x
# - 18.x
- 20.x
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
cache: npm
cache-dependency-path: ./demo/parser/package-lock.json
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build:bin
- run: node bin/cli.js --debug -- hanoi