tests: improve skip for unix.js tests, remove skipped tests #12829
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: Node CI | |
on: | |
push: | |
branches: | |
- main | |
- current | |
- next | |
- 'v*' | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
dependency-review: | |
if: ${{ github.event_name == 'pull_request' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: Dependency Review | |
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3 | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
test: | |
name: Test with Node.js ${{ matrix.node-version }} on ${{ matrix.runs-on }} | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
max-parallel: 0 | |
matrix: | |
node-version: | |
- 18 | |
- 20 | |
- 21 | |
runs-on: | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js@${{ matrix.node-version }} | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Print version information | |
run: | | |
echo OS: $(node -p "os.version()") | |
echo Node.js: $(node --version) | |
echo npm: $(npm --version) | |
echo git: $(git --version) | |
- name: Install dependencies | |
run: npm install | |
- name: Print installed dependencies | |
run: npm ls --all | |
continue-on-error: true | |
- name: Run tests | |
run: npm run coverage:ci | |
env: | |
CI: true | |
NODE_V8_COVERAGE: ./coverage/tmp | |
- name: Coverage Report | |
if: matrix.runs-on == 'ubuntu-latest' && matrix.node-version == 20 | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
test-types: | |
name: Test TypeScript types | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Run typings tests | |
run: npm run test:typescript | |
automerge: | |
if: > | |
github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' | |
needs: | |
- dependency-review | |
- test | |
- test-types | |
- lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
actions: write | |
steps: | |
- name: Merge Dependabot PR | |
uses: fastify/github-action-merge-dependabot@9e7bfb249c69139d7bdcd8d984f9665edd49020b # v3.10.1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |