From 76b4ad06937953ab04a6730045ed33cc209a5851 Mon Sep 17 00:00:00 2001 From: Osneida Bordones <40871779+osneida@users.noreply.github.com> Date: Tue, 6 May 2025 20:35:35 -0400 Subject: [PATCH] Create test_calculadora.yml --- .github/workflows/test_calculadora.yml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test_calculadora.yml diff --git a/.github/workflows/test_calculadora.yml b/.github/workflows/test_calculadora.yml new file mode 100644 index 0000000..0399fed --- /dev/null +++ b/.github/workflows/test_calculadora.yml @@ -0,0 +1,27 @@ +name: Run Tests and Upload Artifact + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Install dependencies + run: npm install + + - name: Run tests and generate report + run: node test/calculator.test.js + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: test-results + path: results/test-results.txt