From b9aee732386dbd4e2dbc988a3df7cc6f0fa4653b Mon Sep 17 00:00:00 2001 From: Harry Minsky Date: Fri, 6 Sep 2024 10:26:26 -0400 Subject: [PATCH] Create lint.yml Add a linting workflow to github actions --- .github/workflows/lint.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..63dbe87 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,18 @@ +name: Lint +on: + pull_request: + push: +jobs: + run_lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: 'front-end/.node-version' + - name: Install dependencies + working-directory: ./front-end + run: npm ci + - name: Run ESLint + working-directory: ./front-end + run: npm run lint