-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 804 Bytes
/
node.yml
File metadata and controls
33 lines (30 loc) · 804 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
30
31
32
33
name: NASA Project CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
env:
MONGO_URL: mongodb://localhost/nasa
CI: true
ENV: actions
strategy:
matrix:
node-version: [ 16.x, 20.x ]
mongodb-version: ['4.4']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Start MongoDB version ${{ matrix.mongodb-version }}
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Use Node.js version ${{matrix.node-version}}
uses: actions/setup-node@v2
with:
node-version: ${{matrix.node-version}}
- run: npm install
- run: npm run build
- run: npm test