From 6317c7235743f1af3711fd43fe4ba334f7adccfe Mon Sep 17 00:00:00 2001 From: Rafael do Amaral Costa Date: Sun, 30 Aug 2026 23:34:18 -0300 Subject: [PATCH 1/3] chore: CI pipeline --- back/.github/workflows/ci.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 back/.github/workflows/ci.yml diff --git a/back/.github/workflows/ci.yml b/back/.github/workflows/ci.yml new file mode 100644 index 0000000..8acb2d5 --- /dev/null +++ b/back/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - name: Checkout código + uses: actions/checkout@v4 + + - name: Configurar Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + + - name: Instalar dependências + run: npm ci + + - name: Verificar tipos (TypeScript) + run: npx tsc --noEmit + + - name: Build + run: npm run build --if-present + + # para testes futuros + # - name: Rodar testes + # run: npm test \ No newline at end of file From 3f9e59730f925e0000528e5646771f56ef3318c3 Mon Sep 17 00:00:00 2001 From: Rafael do Amaral Costa Date: Sun, 30 Aug 2026 23:37:12 -0300 Subject: [PATCH 2/3] fix: github actions location --- {back/.github => .github}/workflows/ci.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {back/.github => .github}/workflows/ci.yml (100%) diff --git a/back/.github/workflows/ci.yml b/.github/workflows/ci.yml similarity index 100% rename from back/.github/workflows/ci.yml rename to .github/workflows/ci.yml From 4ab2bceb8b7c1e50fe61f84b7b7b368960c8980f Mon Sep 17 00:00:00 2001 From: Rafael do Amaral Costa Date: Sun, 30 Aug 2026 23:47:19 -0300 Subject: [PATCH 3/3] fix: CI default workinf-directory --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8acb2d5..74aa73c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,10 @@ jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: back + strategy: matrix: node-version: [20.x] @@ -23,6 +27,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: "npm" + cache-dependency-path: back/package-lock.json - name: Instalar dependências run: npm ci