This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
chore: test on nodejs20 (testing) #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')" |