From 816c493209e96d671e4e803ff9de8c4d987953a5 Mon Sep 17 00:00:00 2001 From: weaponsforge Date: Sat, 17 Aug 2024 23:47:56 +0800 Subject: [PATCH] feat: lint app on push to feature branches, #3 --- .github/workflows/lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..96dad89 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +name: Lint Files + +on: + push: + branches-ignore: + - master + - dev + +jobs: + lint-client: + name: Lint Client + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + - name: Use NodeJS v20.15.0 + uses: actions/setup-node@v3 + with: + node-version: 20.15.0 + - name: Install Dependencies + run: | + cd app + npm install + - name: Lint + run: | + cd app + npm run lint