Browse Source

feature: introduce ci (#10)

Lucas Neves Pereira 1 tháng trước cách đây
mục cha
commit
a8f07a7bdf
1 tập tin đã thay đổi với 32 bổ sung0 xóa
  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