diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..96520ad4 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,45 @@ +name: ci + +permissions: + contents: read + +on: + pull_request: + branches: + - main + paths: + - "apps/web/**" + - "apps/docs/**" + - "packages/**" + - ".github/workflows/**" + +concurrency: + group: pr-ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.11.0 + + - name: setup node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - name: install dependencies + run: pnpm install --frozen-lockfile + + - name: lint + run: pnpm run lint + + - name: build + run: pnpm run build