From 7165dbbf372b610738335e21ba17829266d32cd0 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Wed, 28 May 2025 23:09:01 -0400 Subject: [PATCH] Push linting action --- .gitea/workflows/lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/lint.yml diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..f8e1c11 --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -0,0 +1,27 @@ +name: Lint Pull Request + +on: + pull_request: + + push: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 # Uses the GitHub Actions checkout action, which is compatible with Gitea Actions + + - name: Set up Node.js + uses: actions/setup-node@v4 # Uses the GitHub Actions setup-node action, compatible with Gitea Actions + with: + node-version: '20' # Specify the Node.js version you are using (e.g., 18, 20, 22) + + - name: Install dependencies + run: npm install # Installs all dependencies listed in package.json + + - name: Run lint + run: npm run lint # Executes the 'lint' script defined in your package.json