fix typescript and eslint errors #172
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
# Workflow that lint and build with typescript the code. | |
name: ESLint & Typescript | |
# Triggered on very branch at every push | |
on: [push] | |
jobs: | |
typescript: | |
runs-on: ubuntu-latest | |
steps: | |
# [1] checkout repo. | |
- uses: actions/checkout@v2 | |
# [2] get node. | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.14.2' | |
# [3] install dependencies. | |
- name: Install dependencies | |
run: yarn | |
# [4] test typescript. | |
- name: Run typescript | |
run: yarn typescript | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
# [1] checkout repo. | |
- uses: actions/checkout@v2 | |
# [2] get node. | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.14.2' | |
# [3] install dependencies. | |
- name: Install dependencies | |
run: yarn | |
# [4] test. | |
- name: Run eslint | |
run: yarn lint |