From 5835bd498d1664479829dbe91f760fa298cb35e4 Mon Sep 17 00:00:00 2001 From: Alex Boyd Date: Thu, 22 Aug 2024 16:44:05 -0400 Subject: [PATCH] Create jest-ci.yml --- .github/workflows/jest-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/jest-ci.yml diff --git a/.github/workflows/jest-ci.yml b/.github/workflows/jest-ci.yml new file mode 100644 index 0000000..4b35b27 --- /dev/null +++ b/.github/workflows/jest-ci.yml @@ -0,0 +1,25 @@ +name: "Jest/React CI" +on: + workflow_dispatch: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + jest: + runs-on: ubuntu-latest + steps: + - name: Create folder + run: | + mkdir -p /opt/bookworm + cd /opt/bookworm + - name: Checkout code + uses: actions/checkout@v4 + - name: Install modules + run: | + cd react + npm i + - name: Run tests + run: | + cd react + npm test