Skip to content

Commit

Permalink
feat GitHub action for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHorwitz committed May 29, 2024
1 parent 769e349 commit 3c7ced0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Linting
run-name: ${{ github.actor }} at ${{ github.event_name }} event
on:
workflow_dispatch:
jst:
pull_request:
branches:
- main
- release
types:
- opened
- reopened
jobs:
jest-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20.13.1'
- name: Install dependencies
run: |
cd frontend
npm install yarn
yarn
- name: Run jest
run: |
cd frontend
yarn lint

0 comments on commit 3c7ced0

Please sign in to comment.