HTTP/2 Request Lifecycle #7
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: | |
branches: | |
- main | |
- 'versions/*' | |
tags: | |
- 'v*' | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- run: npm ci | |
- run: npm run lint | |
test: | |
# Run unit tests on windows and linux | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: | |
- ubuntu-latest | |
- windows-latest | |
node-version: | |
- '18.0' | |
- 18.x | |
- '20.0' | |
- 20.x | |
- '22.1' | |
- 22.x | |
timeout-minutes: 15 | |
steps: | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Ensure line endings are consistent | |
run: git config --global core.autocrlf input | |
- name: Check out repository | |
uses: actions/[email protected] | |
- name: Install dependencies and run build scripts | |
run: npm ci | |
- name: Run tests | |
run: npm run test |