-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See if tests run wthout specifying mongo in config
- Loading branch information
1 parent
2c6a547
commit 033064b
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |