generated from Arquisoft/lomap_0
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.35 KB
/
lomap_es4b.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI for LOMAP ES4B
on:
release:
types: [published]
pull_request:
branches:
- master
- develop
push:
branches:
- master
- develop
jobs:
unit-e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm --prefix webapp ci --legacy-peer-deps
- run: npm --prefix webapp test --coverage --watchAll
# - run: CI=false && npm --prefix webapp run build
# - run: npm --prefix webapp run test:e2e --coverage --watchAll
- name: Analyze with SonarCloud
uses: sonarsource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
docker-push-webapp:
name: Push webapp Docker Image to GitHub Packages
runs-on: ubuntu-latest
needs: [unit-e2e-tests]
steps:
- uses: actions/checkout@v3
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
API_URI: http://${{ secrets.DEPLOY_HOST }}:5000/api
with:
name: arquisoft/lomap_es4a/webapp
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
registry: ghcr.io
workdir: webapp
buildargs: API_URI