-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.29 KB
/
main.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: GB3 Frontend
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
node:
name: Node
uses: ./.github/workflows/node-tests.yml
with:
cache_key: node-coverage-report-${{ github.sha }}-${{ github.run_id }}
docker:
name: Docker Dry Run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gisktzh/github-actions/docker-dry-run@main
with:
image: gb3-frontend
sonarcloud:
name: SonarCloud
needs: node
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: gisktzh/github-actions/sonarcloud-analysis@main
with:
sonar_token: ${{ secrets.SONAR_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
coverage_file_path: './coverage/gb3-frontend/lcov.info'
coverage_cache_key: node-coverage-report-${{ github.sha }}-${{ github.run_id }}
deploy-dev:
name: Deploy dev environment
if: github.ref == 'refs/heads/develop'
needs:
- node
- sonarcloud
- docker
uses: ./.github/workflows/node-deploy.yml