From 033869c7dc6d49ddb9e47e01c767cc05ce743f05 Mon Sep 17 00:00:00 2001 From: yatuk <92943471+yatuk@users.noreply.github.com> Date: Mon, 10 Aug 2026 21:14:49 +0300 Subject: [PATCH] Add CI workflow for lint, build, and test --- .github/workflows/ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..17e759e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,55 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: '20' + + - run: npm ci + + - name: Lint all packages + run: npx nx run-many --target=lint --all + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: '20' + + - run: npm ci + + - name: Build all packages + run: npm run build:all + + test: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: '20' + + - run: npm ci + + - name: Build all packages + run: npm run build:all + + - name: Run tests + run: npx nx run-many --target=test --all