Skip to content

Commit

Permalink
add lint github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudmoravej committed Nov 8, 2023
1 parent 0d3a949 commit 8653b18
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint

on: [push]

jobs:
run:
runs-on: ubuntu-latest

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

- name: Run linting
run: yarn lint
11 changes: 2 additions & 9 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@ jobs:
runs-on: ubuntu-latest

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-repo

- name: Run tsc
run: yarn tsc
14 changes: 14 additions & 0 deletions .github/workflows/utils/setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Setup Action"
description: "Setup env for running actions"
runs:
using: "composite"
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

0 comments on commit 8653b18

Please sign in to comment.