From 659448f04762022324f4b6d844fe6a85e436b7ac Mon Sep 17 00:00:00 2001 From: Yasmim Rosa Date: Sun, 19 Nov 2023 18:04:45 -0300 Subject: [PATCH] =?UTF-8?q?primeira=20vers=C3=A3o=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/workflow_ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/workflow_ci.yml diff --git a/.github/workflows/workflow_ci.yml b/.github/workflows/workflow_ci.yml new file mode 100644 index 00000000..b7ba8fd9 --- /dev/null +++ b/.github/workflows/workflow_ci.yml @@ -0,0 +1,27 @@ +name: CI - Build and Deploy +on: [push] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Clone repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install dependencies + run: | + cd back-end + npm install + + - name: Run back-end + run: | + cd back-end + npm start + sleep 10 + pkill -f "npm start" \ No newline at end of file