Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
saisilinus committed Apr 18, 2022
1 parent 9276a0c commit 1e22672
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,34 @@ env:
JWT_VERIFY_EMAIL_EXPIRATION_MINUTES: 10

jobs:

build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]
mongodb-version: [4.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: yarn

run-linting-tests:

runs-on: ubuntu-latest

uses: ./.github/workflows/setUp.yml
needs: build

steps:
- name: Run linting tests
Expand All @@ -34,7 +57,7 @@ jobs:

runs-on: ubuntu-latest

uses: ./.github/workflows/setUp.yml
needs: run-linting-tests

steps:
- name: Run unit tests
Expand Down

0 comments on commit 1e22672

Please sign in to comment.