From f23757a113d16443d69677b58588e7e79b09618d Mon Sep 17 00:00:00 2001 From: el-rabies Date: Thu, 9 Apr 2026 13:26:23 -0400 Subject: [PATCH 1/4] feat: Added automatic testing pipeline --- .github/workflows/tests.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..418c73d --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,39 @@ +name: Angular Tests + +on: + pull_request: + +permissions: + contents: read + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Determine version + id: version + run: | + PROD_VERSION=$(curl -sf https://reactome.org/ContentService/data/database/version) + echo "prod_version=$PROD_VERSION" >> "$GITHUB_OUTPUT" + + if [ "${{ github.ref_name }}" = "prod" ]; then + VERSION=$PROD_VERSION + else + VERSION=$((PROD_VERSION + 1)) + fi + echo "version=$VERSION" >> "$GITHUB_OUTPUT" + echo "Deploying to version $VERSION" + + - name: Install dependencies + run: npm ci --legacy-peer-deps + + - name: Test + run: npm test From 1a95dcbf93d895323d48c70fb1b108a52c789111 Mon Sep 17 00:00:00 2001 From: el-rabies Date: Thu, 9 Apr 2026 13:28:56 -0400 Subject: [PATCH 2/4] chore: Renamed job --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 418c73d..e6e974d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ permissions: contents: read jobs: - deploy: + test: runs-on: ubuntu-latest steps: From de17f5a28907ab66a790374855d07c037e15121f Mon Sep 17 00:00:00 2001 From: el-rabies Date: Thu, 9 Apr 2026 13:29:32 -0400 Subject: [PATCH 3/4] fix: Removed uneeded step --- .github/workflows/tests.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e6e974d..7567fa1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,20 +18,6 @@ jobs: node-version: 20 cache: npm - - name: Determine version - id: version - run: | - PROD_VERSION=$(curl -sf https://reactome.org/ContentService/data/database/version) - echo "prod_version=$PROD_VERSION" >> "$GITHUB_OUTPUT" - - if [ "${{ github.ref_name }}" = "prod" ]; then - VERSION=$PROD_VERSION - else - VERSION=$((PROD_VERSION + 1)) - fi - echo "version=$VERSION" >> "$GITHUB_OUTPUT" - echo "Deploying to version $VERSION" - - name: Install dependencies run: npm ci --legacy-peer-deps From 62c77ad5712795185e41261bab892f330f9cc83a Mon Sep 17 00:00:00 2001 From: el-rabies Date: Thu, 9 Apr 2026 13:32:16 -0400 Subject: [PATCH 4/4] chore: Renamed autofix.ci to be more descriptive --- .github/workflows/prettier.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index bade18f..17f38a9 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,4 +1,4 @@ -name: autofix.ci +name: Auto-format with Prettier on: pull_request: