chore(deps): update dependency eslint to v8.46.0 (#521) #12
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
# This workflow will run the examples provided in the examples folder | |
name: examples | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
nodejs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 10 | |
- 12 | |
- 14 | |
- 16 | |
- 18 | |
- 20 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install | |
working-directory: examples/nodejs | |
- run: npm run test | |
working-directory: examples/nodejs | |
typescript-node-es6: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ts-version: | |
- 3 | |
- 4 | |
- "5.0" # requires node version 12.20 | |
# starting with typescript 5.1 the minimum required node version is 14.17 | |
# so current versions have a separate job without node v12 | |
node-version: | |
- 12 | |
- 14 | |
- 16 | |
- 18 | |
- 20 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: ./pretest.sh ${{ matrix.ts-version }} | |
working-directory: examples/typescript-node-es6 | |
- run: node --experimental-modules dist/index.js | |
if: ${{ matrix.node-version == 12 }} | |
working-directory: examples/typescript-node-es6 | |
- run: node dist/index.js | |
if: ${{ matrix.node-version > 12 }} | |
working-directory: examples/typescript-node-es6 | |
typescript51-node-es6: | |
# starting with typescript 5.1 the minimum required node version is 14.17 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ts-version: | |
- 5 | |
node-version: | |
- 14 | |
- 16 | |
- 18 | |
- 20 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: ./pretest.sh ${{ matrix.ts-version }} | |
working-directory: examples/typescript-node-es6 | |
- run: node dist/index.js | |
working-directory: examples/typescript-node-es6 |