update-node.js in actions form 16 to 20 #1073
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: Static Code Analysts Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [assigned, opened, synchronize, reopened] | |
jobs: | |
tsc: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Npm install | |
run: npm i --legacy-peer-deps | |
- name: TypeScript tsc | |
run: ./node_modules/.bin/tsc --project tsconfig.json --noEmit --v | |
eslint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Npm install | |
run: npm i --legacy-peer-deps | |
- name: Lint TypeScript | |
run: npm run eslint | |
stylelint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Npm install | |
run: npm i --legacy-peer-deps | |
- name: Lint TypeScript | |
run: npm run stylelint | |