From c0496be51b2c9bc0cacf9dc03fe34cb7ebfa8a85 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Fri, 24 Jan 2025 17:45:58 +0100 Subject: [PATCH] - workflow adaptions for new tests --- .gitea/workflows/checkReferenceType.yaml | 24 +++++++++++++++ .gitea/workflows/ci.yaml | 37 ++++++------------------ 2 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 .gitea/workflows/checkReferenceType.yaml diff --git a/.gitea/workflows/checkReferenceType.yaml b/.gitea/workflows/checkReferenceType.yaml new file mode 100644 index 0000000..2e0d1c1 --- /dev/null +++ b/.gitea/workflows/checkReferenceType.yaml @@ -0,0 +1,24 @@ +name: CI +run-name: ${{ github.actor }} is testing out Gitea Actions +on: + push: + branches: + - feat/checkReferenceType + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: node ace test functional --groups "ReferenceValidation" \ No newline at end of file diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index a9ec6e1..916f839 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -4,7 +4,13 @@ name: CI Pipeline run-name: ${{ github.actor }} is running CI pipeline # trigger build when pushing, or when creating a pull request -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: # Label of the container job @@ -12,7 +18,7 @@ jobs: # run build on latest ubuntu runs-on: ubuntu-latest - container: node:18-bullseye + container: node:20-bullseye services: mydb: @@ -70,6 +76,7 @@ jobs: && echo "CACHE_VIEWS=false" >> .env.test && echo "APP_KEY=pfi5N2ACN4tMJ5d8d8BPHfh3FEuvleej" >> .env.test && echo "DRIVE_DISK=local" >> .env.test + && echo "OAI_LIST_SIZE=200" >> .env.test # finally run the tests # - run: npm test @@ -96,29 +103,3 @@ jobs: # with: # github-token: ${{ secrets.GITHUB_TOKEN }} ---- - -name: CI - -on: - push: - branches: - - feat/checkReferenceType - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install dependencies - run: npm install - - - name: Run tests - run: npx japa --group "ReferenceValidation"