-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 771 Bytes
/
Copy pathnode.yml
File metadata and controls
29 lines (29 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: NASA Project CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
env:
CI: true
MONGO_URL: mongodb://localhost/nasa
strategy:
matrix:
node-version: [14.x, 16.x]
mongodb-version: ['4.4']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js version ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Use MongoDB from GitHub actions
uses: supercharge/mongodb-github-action@1.6.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: npm install
- run: npm run build --prefix client
- run: npm test