Skip to content

Continuous Integration: Test Pipeline #4

Continuous Integration: Test Pipeline

Continuous Integration: Test Pipeline #4

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_TEST_URL: ${{ secrets.MONGO_TEST_URL }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x, 20.x]
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 }}
- run: npm install
- run: npm run build --prefix client
- run: npm test