-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.25 KB
/
main.yaml
File metadata and controls
58 lines (46 loc) · 1.25 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Continuous Integration for Frontend
on:
push:
branches:
- main
jobs:
testing:
name: Testing Frontend
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Build App
run:
npm ci
npm run build
env:
CI: ""
- name: Set up MongoDB URI
run: echo "SPRING_DATA_MONGODB_URI=mongodb://localhost:27017/frontend" >> $GITHUB_ENV
# sonar-cloud-scan:
# needs: testing
# uses: ./.github/workflows/sonarqube-scan.yaml
# secrets:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build-image:
needs: testing
uses: ./.github/workflows/build-image.yaml
secrets:
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
# scan-image:
# needs: build-image
# uses: ./.github/workflows/scan-image.yaml
# notify:
# needs: scan-image
# uses: ./.github/workflows/notifyCI.yaml
# secrets:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
### Push image ###