From 033064b737b3074cf32ca09563e1a6fa226b803e Mon Sep 17 00:00:00 2001 From: ryanformio Date: Mon, 18 Mar 2024 14:49:06 -0500 Subject: [PATCH] See if tests run wthout specifying mongo in config --- .github/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..aa0960d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: Repo + +on: + push: + branches: + - '*' # This will make sure all push events on any branch triggers this workflow. + +env: + NODE_VERSION: 20.x + +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: echo "Triggered by ${{ github.event_name }} event." + - name: Check out repository code ${{ github.repository }} on ${{ github.ref }} + uses: actions/checkout@v3 + + - name: Set up Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'npm' + + - name: Restore node modules from cache + uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Test + if: true + uses: borales/actions-yarn@v4 + with: + cmd: test