From 9712243d997fde01702d7f67b9637c33c85217fa Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 26 Sep 2025 01:14:34 -0700 Subject: [PATCH] Feat: Add GitHub Action workflow for tests --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0d6a534 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Run Hi Tests + +on: + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Run tests + id: run-tests + run: npm test + continue-on-error: true + + - name: Commit test results + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "Docs: Update test results" + file_pattern: test-results.md + + - name: Check test step outcome + if: steps.run-tests.outcome == 'failure' + run: exit 1