From 7eb548e1384de3842db8a2fe09acdb3ebc20ff04 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Mon, 3 Jun 2024 12:35:07 +0200 Subject: [PATCH] Added: gitea action for backend --- .gitea/workflows/build.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..6626f5e --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,32 @@ +name: Build DeguApp backend + +on: pull_request + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Node.js and TypeScript + uses: actions/setup-node@v1 + with: + node-version: "20.14.0" + + - name: npm install + working-directory: api/ + run: | + npm install + + - name: npm run build + working-directory: api/ + run: | + npm run build --if-present + + - name: npm run test + working-directory: api/ + run: | + npm run test +