Skip to content

Commit

Permalink
Merge branch 'main' of github.com:SchweizerischeBundesbahnen/DAS into…
Browse files Browse the repository at this point in the history
… release-please
  • Loading branch information
mghilardelli committed Mar 4, 2024
2 parents 05481ad + b3f8665 commit e7a0851
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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
Expand Down
5 changes: 2 additions & 3 deletions webapp/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,13 @@
},
"configurations": {
"ci": {
"browsers": "ChromiumHeadlessCI",
"browsers": "ChromeHeadless",
"codeCoverage": true,
"sourceMap": true,
"progress": false,
"watch": false,
"reporters": [
"dots",
"sonarqube"
"dots"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
},
Expand Down
1 change: 1 addition & 0 deletions webapp/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Webapp</title>
<p>Hallo DAS</p>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
Expand Down

0 comments on commit e7a0851

Please sign in to comment.