From b3f8665cb5826cffc4b3009068d9a6b6533582f8 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 4 Mar 2024 20:27:15 +0100 Subject: [PATCH] chore: webapp ci action (#11) --- .github/workflows/ci-webapp.yml | 15 ++++++++++++--- webapp/angular.json | 5 ++--- webapp/package.json | 2 +- webapp/src/index.html | 1 + 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-webapp.yml b/.github/workflows/ci-webapp.yml index 0c7a17cf..7dcddffb 100644 --- a/.github/workflows/ci-webapp.yml +++ b/.github/workflows/ci-webapp.yml @@ -25,10 +25,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} - uses: actions/setup-node@v4 with: - node-version-file: '.nvmrc' + node-version-file: 'webapp/.nvmrc' cache: 'npm' + cache-dependency-path: 'webapp/package-lock.json' - run: npm clean-install - run: npm run lint @@ -37,10 +40,13 @@ jobs: needs: lint steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} - uses: actions/setup-node@v4 with: - node-version-file: '.nvmrc' + node-version-file: 'webapp/.nvmrc' cache: 'npm' + cache-dependency-path: 'webapp/package-lock.json' - run: npm clean-install - run: npm test @@ -49,10 +55,13 @@ jobs: needs: lint steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} - uses: actions/setup-node@v4 with: - node-version-file: '.nvmrc' + node-version-file: 'webapp/.nvmrc' cache: 'npm' + cache-dependency-path: 'webapp/package-lock.json' - run: npm clean-install - run: npm run build - name: Store build artifacts diff --git a/webapp/angular.json b/webapp/angular.json index df5bcd71..683f002f 100644 --- a/webapp/angular.json +++ b/webapp/angular.json @@ -96,14 +96,13 @@ }, "configurations": { "ci": { - "browsers": "ChromiumHeadlessCI", + "browsers": "ChromeHeadless", "codeCoverage": true, "sourceMap": true, "progress": false, "watch": false, "reporters": [ - "dots", - "sonarqube" + "dots" ] } } diff --git a/webapp/package.json b/webapp/package.json index 41ccfeea..69a5da60 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -6,7 +6,7 @@ "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", - "test": "ng test", + "test": "ng test -c ci", "lint": "ng lint", "format": "prettier --write ." }, diff --git a/webapp/src/index.html b/webapp/src/index.html index d8b516d5..4abe8920 100644 --- a/webapp/src/index.html +++ b/webapp/src/index.html @@ -3,6 +3,7 @@ Webapp +

Hallo DAS