From 047174291b632973bc3313ed418ca1daf398cf99 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sun, 25 Feb 2024 14:43:50 +0100 Subject: [PATCH] test action --- .gitea/workflows/test.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..7a6c119 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,35 @@ +name: Outbag Tests + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + + services: + database: + image: mariadb + env: + MYSQL_DATABASE: outbag + MYSQL_USER: outbag + MYSQL_PASSWORD: 12345678 + MYSQL_ROOT_PASSWORD: 12345678 + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + - name: Install Dependencies + run: | + npm ci + - name: Build Outbag + run: | + mkdir build + npm run prepublish + npm run bundleRelease + - name: Generate Self-Signed Cert + run: + sh genSelfSignedCert.sh + - name: Run Tests + run: | + node tests/ws.js ci + node tests/post.js ci