Skip to content

Commit

Permalink
Add Github Action for linting
Browse files Browse the repository at this point in the history
* add lint github action

* fixes

* fixes

* fixes

* fixes

* fixes
  • Loading branch information
mahmoudmoravej authored Nov 8, 2023
1 parent 0d3a949 commit 0a367bc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Setup Action"
description: "Setup env for running actions"
runs:
using: "composite"
steps:
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "20.5.1"

- name: Install Dependencies
run: yarn install
shell: bash
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint

on: [push]

jobs:
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Repo
uses: ./.github/actions/setup

- name: Run linting
run: yarn lint
9 changes: 2 additions & 7 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "20.5.1"

- name: Install Dependencies
run: yarn install
- name: Setup Repo
uses: ./.github/actions/setup

- name: Run tsc
run: yarn tsc

0 comments on commit 0a367bc

Please sign in to comment.