build(deps): bump actions/setup-node from 4.0.3 to 4.0.4 #355
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
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: π Check project in different Node versions | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
check-node-build: | |
name: 𧩠Build and test code | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 16, 18, 20 ] | |
steps: | |
- name: π Checkout code from repository | |
uses: actions/[email protected] | |
- name: π οΈ Setup Node version ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: π¦ Install dependencies | |
run: npm install | |
- name: ποΈ Build project | |
run: npm run build --if-present | |
- name: π§ͺ Test code | |
run: npm test --if-present |