From 6a6ba447d3764868e0927c4bc6e31d06fe057247 Mon Sep 17 00:00:00 2001 From: Vin Bui <vdb23@cornell.edu> Date: Sun, 18 Aug 2024 21:58:45 -0500 Subject: [PATCH] WEB-12: Add CI pipeline --- .github/workflows/jestci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/jestci.yml diff --git a/.github/workflows/jestci.yml b/.github/workflows/jestci.yml new file mode 100644 index 0000000..cccab8e --- /dev/null +++ b/.github/workflows/jestci.yml @@ -0,0 +1,30 @@ +name: Jest CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + cache-dependency-path: ./yarn.lock + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn install + + - name: Run Jest tests + run: yarn test