diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml new file mode 100644 index 000000000..5d3b67530 --- /dev/null +++ b/.github/workflows/frontend-ci.yml @@ -0,0 +1,36 @@ +name: Frontend CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + ci: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: latest + + - name: Install dependencies + run: cd frontend && pnpm install + + - name: Run lint + run: cd frontend && pnpm lint + + - name: Run build + run: cd frontend && pnpm build