Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

chore: test on nodejs20 (testing) #32

chore: test on nodejs20 (testing)

chore: test on nodejs20 (testing) #32

Workflow file for this run

on: push
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
node: ['20']
name: Node ${{ matrix.node }} on ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
path: protagonist
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm pack
working-directory: protagonist
- run: npm install ./protagonist/protagonist-*.tgz
- run: node -e "assert(require('protagonist').parseSync('# My API').element === 'parseResult')"