This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
chore(deps): update dependency @types/node to v18.19.3 #306
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: Lint code & compile test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: .node-version | |
cache: 'npm' | |
check-latest: true | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint code | |
run: npm run lint | |
compile: | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: .node-version | |
cache: 'npm' | |
check-latest: true | |
- name: Install dependencies | |
run: npm ci | |
- name: Test compile | |
run: npm run compile && rm -rf dist |