Skip to content

Commit

Permalink
See if tests run wthout specifying mongo in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanformio committed Mar 18, 2024
1 parent 2c6a547 commit 033064b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 033064b

Please sign in to comment.