|
@@ -0,0 +1,32 @@
|
|
|
+name: ci
|
|
|
+
|
|
|
+on:
|
|
|
+ push:
|
|
|
+ branches: [main]
|
|
|
+ pull_request:
|
|
|
+ branches: [main]
|
|
|
+
|
|
|
+jobs:
|
|
|
+ build:
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v3
|
|
|
+
|
|
|
+ - name: Setup Node.js
|
|
|
+ uses: actions/setup-node@v3
|
|
|
+ with:
|
|
|
+ node-version: "18"
|
|
|
+
|
|
|
+ - name: Setup pnpm
|
|
|
+ uses: pnpm/action-setup@v2
|
|
|
+ with:
|
|
|
+ version: 8
|
|
|
+
|
|
|
+ - name: Install dependencies
|
|
|
+ run: pnpm install
|
|
|
+
|
|
|
+ - name: Run linting
|
|
|
+ run: pnpm lint
|
|
|
+
|
|
|
+ - name: Build application
|
|
|
+ run: pnpm build
|