Skip to content

Commit

Permalink
new pipeline for qa
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-1337 committed Oct 1, 2024
1 parent df8faf1 commit c6e03ed
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
File renamed without changes.
50 changes: 50 additions & 0 deletions .github/workflows/firebase-hosting-qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build & deploy to Firebase Hosting on merge
'on':
push:
branches:
- qa
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list

- name: Install dependencies
run: npm ci --quiet

- name: Install Angular CLI
run: npm i -g @angular/cli

- name: Run linting
continue-on-error: false
run: ng config -g cli.warnings.versionMismatch false && ng lint

- name: Build
run: ng build --configuration production

- name: Deploy to firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KRAFT_QR }}'
channelId: qa
projectId: kraft-qr

0 comments on commit c6e03ed

Please sign in to comment.