Skip to content

Continuous Integration & Delivery #6

Continuous Integration & Delivery

Continuous Integration & Delivery #6

Workflow file for this run

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