From 0ea7b67c474039b01b98811e593c55795f820827 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 11 Jul 2025 01:32:06 +0000 Subject: [PATCH 1/4] Add GitHub Actions workflow for running tests on main and PRs Co-authored-by: me --- .github/workflows/tests.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 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..f72a8df --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,47 @@ +name: Tests + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + push: + branches: + - 'main' + pull_request: + branches: + - 'main' + +jobs: + tests: + name: ๐Ÿงช Run Tests + runs-on: ubuntu-latest + # Use continue-on-error to ensure this job doesn't fail the workflow + continue-on-error: true + + steps: + - name: โฌ‡๏ธ Checkout repo + uses: actions/checkout@v4 + + - name: โŽ” Setup node + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: ๐Ÿ“ฆ Install dependencies + run: npm ci + working-directory: ./epicshop + + - name: ๐Ÿงช Run tests + id: run_tests + run: node ./epicshop/test.js ..2 + continue-on-error: true + + - name: ๐Ÿ“Š Test results + if: always() + run: | + if [ "${{ steps.run_tests.outcome }}" == "success" ]; then + echo "โœ… Tests passed!" + else + echo "โŒ Tests failed, but this won't block deployments" + fi \ No newline at end of file From 80048256e48787c048336a283e6516fbd74c8760 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 11 Jul 2025 01:43:15 +0000 Subject: [PATCH 2/4] Remove unnecessary working-directory from npm ci step in tests workflow Co-authored-by: me --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f72a8df..8057677 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,7 +30,6 @@ jobs: - name: ๐Ÿ“ฆ Install dependencies run: npm ci - working-directory: ./epicshop - name: ๐Ÿงช Run tests id: run_tests From d513e7e71775d6dd42161430f2d1fe2e89cf33b7 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 11 Jul 2025 01:50:56 +0000 Subject: [PATCH 3/4] Checkpoint before follow-up message --- .github/workflows/tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8057677..ddb8c8f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Tests +THIS SHOULD BE A LINTER ERRORname: Tests concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -8,9 +8,7 @@ on: push: branches: - 'main' - pull_request: - branches: - - 'main' + pull_request: {} jobs: tests: From a26f81a92fc0802e63a147dcb695bcdf2b8d46e2 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 11 Jul 2025 01:51:43 +0000 Subject: [PATCH 4/4] Update Node version and test script in CI workflow Co-authored-by: me --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ddb8c8f..90f9fd7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -THIS SHOULD BE A LINTER ERRORname: Tests +name: Tests concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -24,14 +24,14 @@ jobs: - name: โŽ” Setup node uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 24 - name: ๐Ÿ“ฆ Install dependencies run: npm ci - name: ๐Ÿงช Run tests id: run_tests - run: node ./epicshop/test.js ..2 + run: node ./epicshop/test.js ..s continue-on-error: true - name: ๐Ÿ“Š Test results