瀏覽代碼

feature: introduce ci (#10)

Lucas Neves Pereira 1 月之前
父節點
當前提交
a8f07a7bdf
共有 1 個文件被更改,包括 32 次插入0 次删除
  1. 32 0
      .github/workflows/ci.yml

+ 32 - 0
.github/workflows/ci.yml

@@ -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