Update README.md #130
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: Compile & Linting | |
on: | |
pull_request: | |
branches: | |
- dev | |
push: | |
branches: | |
- dev | |
env: | |
NODE_VERSION: 20 | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{env.NODE_VERSION}} | |
- name: Code Checkout | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: npm i | |
- name: Typescript Compile | |
run: npm run compile | |
lint: | |
runs-on: ubuntu-latest | |
needs: compile | |
steps: | |
- name: Install NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{env.NODE_VERSION}} | |
- name: Code Checkout | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: npm i | |
- name: Lint Code | |
run: npm run lint | |
- name: Format Code | |
run: npm run format |