Skip to content

Commit

Permalink
Add lint workflow and use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
igoroctaviano committed Oct 15, 2024
1 parent 5313cbe commit 23049ca
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint-and-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint and Format

on:
- push
- pull_request

jobs:
lint-and-format:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install packages
run: yarn install --frozen-lockfile

- name: Run ESLint
run: yarn lint

- name: Check Prettier formatting
run: yarn format:check
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version: 18

- name: Install packages
uses: bahmutov/npm-install@v1
run: yarn install --frozen-lockfile

- name: Run tests
run: npm run test
run: yarn test

0 comments on commit 23049ca

Please sign in to comment.