Skip to content

Commit

Permalink
feat: add simple github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy committed Feb 27, 2024
1 parent 3317b53 commit 61ed7bf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ env:
NODE_VERSION: 18

jobs:
lint-prettier:
setup:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4.1.1
Expand All @@ -21,20 +22,19 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install Dependencies
run: npm install

lint-prettier:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Lint
run: npm run prettier

lint-eslint:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4.1.1

- name: Set up NodeJs
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Lint
run: npm run eslint

0 comments on commit 61ed7bf

Please sign in to comment.