mirror of
https://github.com/expressjs/express.git
synced 2026-02-21 19:41:36 +00:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](395ad32622...6044e13b5d)
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: 6.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
102 lines
2.7 KiB
YAML
102 lines
2.7 KiB
YAML
name: legacy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
- '4.x'
|
|
- '5.x'
|
|
- '5.0'
|
|
paths-ignore:
|
|
- '*.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '*.md'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
# Cancel in progress workflows
|
|
# in the scenario where we already had a run going for that PR/branch/tag but then triggered a new run
|
|
concurrency:
|
|
group: "${{ github.workflow }} ✨ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
node-version: [16, 17]
|
|
# Node.js release schedule: https://nodejs.org/en/about/releases/
|
|
|
|
name: Node.js ${{ matrix.node-version }} - ${{matrix.os}}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Configure npm loglevel
|
|
run: |
|
|
npm config set loglevel error
|
|
shell: bash
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Output Node and NPM versions
|
|
run: |
|
|
echo "Node.js version: $(node -v)"
|
|
echo "NPM version: $(npm -v)"
|
|
|
|
- name: Run tests
|
|
shell: bash
|
|
run: npm run test-ci
|
|
|
|
- name: Upload code coverage
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
with:
|
|
name: coverage-node-${{ matrix.node-version }}-${{ matrix.os }}
|
|
path: ./coverage/lcov.info
|
|
retention-days: 1
|
|
|
|
coverage:
|
|
needs: test
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
checks: write
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install lcov
|
|
shell: bash
|
|
run: sudo apt-get -y install lcov
|
|
|
|
- name: Collect coverage reports
|
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
with:
|
|
path: ./coverage
|
|
pattern: coverage-node-*
|
|
|
|
- name: Merge coverage reports
|
|
shell: bash
|
|
run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info
|
|
|
|
- name: Upload coverage report
|
|
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
|
|
with:
|
|
file: ./lcov.info
|