Merge pull request #790 from abraham/dependabot/npm_and_yarn/eslint-p… #808
This file contains hidden or 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: [18, 20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| 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 }} |