-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) 路 898 Bytes
/
node.yaml
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
34
name: NASA Project CI
on:
push:
branches:
- main
# branch created for the CI/CD module
- 05-Continuous-Integration-and-Delivery
pull_request:
branches:
- main
jobs:
build:
env:
CI: true
MONGO_URL: mongodb://localhost/nasa
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x, 20.x]
mongodb-version: ['5.0', '6.0']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js version ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: MongoDB in GitHub Actions
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: npm install
- run: npm run build --prefix client
- run: npm test