From a347f0190987794274d853412d7a7d055ed49ae5 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Tue, 15 Oct 2024 18:35:07 +0530 Subject: [PATCH] Add lint workflow for gitea --- .gitea/workflows/lint.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/lint.yaml diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 00000000..715e2b68 --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,29 @@ +name: Lint + +on: + pull_request: + push: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v2 + - name: Download yarn + run: | + curl -fsSL -o /usr/local/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.21/yarn-1.22.21.js + chmod +x /usr/local/bin/yarn + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: yarn + - name: Build libs + run: yarn workspace gql-client run build + - name: Linter check + run: yarn lint