Tests(e2e+unit), workflow update with eslint, 1inch & vs hodl apr fix etc. #5
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: ESLint Check | |
# on: | |
# push: | |
# branches: [main, master] | |
# pull_request: | |
# branches: [main, master] | |
# jobs: | |
# lint: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v2 | |
# - name: Setup Node.js | |
# uses: actions/setup-node@v2 | |
# with: | |
# node-version: "20" | |
# - name: Install dependencies | |
# run: npm install eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin --save-dev | |
# - name: Run ESLint | |
# run: npx eslint . | |
name: ESLint Check | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: | | |
yarn add eslint eslint-plugin-astro @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-prettier astro-eslint-parser --dev | |
- name: Run ESLint | |
run: yarn eslint **/*.{ts,tsx,astro} | |
timeout-minutes: 20 |