ci: remove example/package.json #24
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
name: runnable without optional dependencies | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
defaults: | |
run: | |
working-directory: example | |
jobs: | |
runnable: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x, 18.x, 19.x, 20.x, 21.x, 22.x ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: | | |
npm install leo-profanity --no-optional | |
npm install -g typescript | |
npm install -g ts-node | |
- name: Run with CommonJS | |
run: node commonjs.js | |
- name: Run with ES6 | |
run: ts-node es6.ts |