generated from agiledev-students-fall2023/generic-project-repository
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (30 loc) · 943 Bytes
/
ci-cd.yml
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
35
36
37
38
39
name: Node.js CI
on:
push:
branches: [ anasofia ]
pull_request:
branches: [ anasofia ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
env:
EXPRESS_APP_MAP_API_KEY: ${{ secrets.EXPRESS_APP_MAP_API_KEY }}
FRONT_END_DOMAIN: ${{ secrets.FRONT_END_DOMAIN }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
GOOGLE_SHEETS_APIKEY: ${{ secrets.GOOGLE_SHEETS_APIKEY }}
REACT_APP_BACKEND: ${{ secrets.REACT_APP_BACKEND }}
REACT_APP_MAP_API_KEY: ${{ secrets.REACT_APP_MAP_API_KEY }}
steps:
- uses: actions/checkout@v2
- name: Testing secrets
run: |
echo "MongoDB URI: $MONGODB_URI"
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm run install-dependencies