Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
marob committed May 29, 2024
1 parent 99df38d commit 9dbc2d6
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Build and test
run-name: Building and testing branch ${{ github.ref }}
on: [pull_request]
on:
pull_request:
push:
branches:
- develop
- master_*
jobs:
build-frontend:
name: Build Frontend
Expand All @@ -18,8 +23,8 @@ jobs:
- run: npm install -g npm@7.17.0
- run: npm install
working-directory: ui/ui-frontend-common
- run: npm run prettier:ci
working-directory: ui/ui-frontend-common
# - run: npm run prettier:ci
# working-directory: ui/ui-frontend-common
- run: npm run build:prod
working-directory: ui/ui-frontend-common
- run: npm run packagr:tar
Expand All @@ -28,8 +33,8 @@ jobs:
working-directory: ui/ui-frontend-common
- run: npm install ui-frontend-common --legacy-peer-deps --loglevel warn
working-directory: ui/ui-frontend
- run: npm run prettier:ci
working-directory: ui/ui-frontend
# - run: npm run prettier:ci
# working-directory: ui/ui-frontend
- run: npm run build:vitamui-library
working-directory: ui/ui-frontend
- run: npm run copy-scss:vitamui-library
Expand Down Expand Up @@ -67,7 +72,23 @@ jobs:
- uses: szenius/set-timezone@v2.0
with:
timezoneLinux: "Europe/Paris"
- run: mvn --settings .ci/settings.xml -Pvitam,no-cve-proxy --batch-mode --errors -U --projects '!cots/vitamui-mongo-express' --projects '!ui' --projects '!ui/ui-archive-search' --projects '!ui/ui-collect' --projects '!ui/ui-commons' --projects '!ui/ui-frontend' --projects '!ui/ui-frontend-common' --projects '!ui/ui-identity' --projects '!ui/ui-ingest' --projects '!ui/ui-pastis' --projects '!ui/ui-portal' --projects '!ui/ui-referential' verify
- run: mvn --settings .ci/settings.xml
-Pvitam,no-cve-proxy
-Dspotless.check.skip=true
--batch-mode --errors -U
--projects '!cots/vitamui-mongo-express'
--projects '!ui'
--projects '!ui/ui-archive-search'
--projects '!ui/ui-collect'
--projects '!ui/ui-commons'
--projects '!ui/ui-frontend'
--projects '!ui/ui-frontend-common'
--projects '!ui/ui-identity'
--projects '!ui/ui-ingest'
--projects '!ui/ui-pastis'
--projects '!ui/ui-portal'
--projects '!ui/ui-referential'
verify
env:
SERVICE_NEXUS_URL: ${{ secrets.SERVICE_NEXUS_URL }}
CI_USR: ${{ secrets.CI_USR }}
Expand All @@ -94,10 +115,14 @@ jobs:
**/target/classes/**/*
**/target/test-classes/**/*
sonarcloud:
name: Run SonarCloud analysis
needs: [build-frontend, build-backend]
if: ${{ github.event_name == 'push' && github.ref_protected }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download frontend test reports
uses: actions/download-artifact@v4
with:
Expand All @@ -110,7 +135,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: backend-generated-classes
- name: Use SonarCloud scanner
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 9dbc2d6

Please sign in to comment.