Skip to content

Commit

Permalink
Update and rename main.yml to lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaladin committed Sep 6, 2022
1 parent 3a2a44e commit 85a2568
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 20 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Code Linting and Type Checking
on:
push:
branches:
- main
paths:
- ".github/workflows/lint.yml"
- "**.js"
- "**.json"
- "**.ts"
- "**.tsx"
- ".eslint*"
- "package.json"
- "tsconfig.json"
- "yarn.lock"
pull_request:
branches:
- main
paths:
- ".github/workflows/lint.yml"
- "**.js"
- "**.json"
- "**.ts"
- "**.tsx"
- ".eslint*"
- "package.json"
- "tsconfig.json"
- "yarn.lock"
types:
- opened
- reopened
- synchronize
jobs:
lint:
name: Code Linting and Type Checking
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn"
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn
- name: Run ESLint
run: yarn lint
- name: Run TypeScript Compiler (TSC)
run: yarn type-check
20 changes: 0 additions & 20 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit 85a2568

Please sign in to comment.