From 9069de76af7dbd8b5dea233bbc0834e134e80067 Mon Sep 17 00:00:00 2001 From: Refringe Date: Wed, 10 Apr 2024 15:25:41 -0400 Subject: [PATCH] Run Tests Workflow This is a Gitea workflow that runs the test suite after a commit or PR. --- .gitea/workflows/run-tests.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/run-tests.yaml diff --git a/.gitea/workflows/run-tests.yaml b/.gitea/workflows/run-tests.yaml new file mode 100644 index 00000000..05e654e2 --- /dev/null +++ b/.gitea/workflows/run-tests.yaml @@ -0,0 +1,26 @@ +name: Run Tests + +on: + push: + branches: '*' + pull_request: + branches: '*' + +jobs: + trigger-main-build: + runs-on: ubuntu-latest + container: + image: node:20.11.1-alpine + steps: + - uses: actions/checkout@v3 + with: + path: 'server' + fetch-depth: 1 + + - name: Install Dependencies + working-directory: server + run: npm ci + + - name: Run Tests + working-directory: server + run: npm run test