Use promise API for abstract-level v2 compatibility #69
Workflow file for this run
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: Test | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# TODO: drop < 18 in next major | |
node: [12, 14, 16, 18, 20, 22] | |
name: Node ${{ matrix.node }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use node ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install | |
run: npm install | |
- name: Test | |
run: npm test | |
- name: Coverage | |
run: npm run coverage | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: coverage/lcov.info |