Bump cookie and express #34
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: "Tests Status" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] # Define a matrix of Node.js versions to test.There would be 3 jobs for 12.x, 14.x, 16.x | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 # Step 1: Check out the source code from the repository. | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' # Step 2: Use npm caching for faster dependency installs. | |
- name: Install Node.js dependencies | |
run: npm ci # Step 3: Perform a clean install of Node.js dependencies. | |
- name: Run tests | |
run: npm test # Step 4: Run tests using the specified Node.js version |