Merge pull request #747 from abraham/dependabot/github_actions/action… #736
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: Index | |
on: | |
push: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [14, 16, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm install | |
- run: npm run lint | |
- run: npm run build | |
- run: npm run test | |
- name: module test | |
run: | | |
node --input-type=module --eval "import * as m from '@abraham/reflection'; console.log(m)" | |
node --input-type=commonjs --eval "const m = require('@abraham/reflection'); console.log(m)" | |
- run: npm run pkg-ok | |
- uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |