Skip to content

build-test-deploy UAT #99

build-test-deploy UAT

build-test-deploy UAT #99

name: build-test-deploy UAT
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 20 * * FRI'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm ci --legacy-peer-deps
- run: npm run build --if-present
- run: npm run test-ci
- uses: actions/upload-artifact@master
with:
name: www
path: www
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
junit_files: junit/*.xml
deploy:
runs-on: ubuntu-latest
needs: [ build-test ]
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: www
path: www
- name: Deploy to Firebase
uses: w9jds/[email protected]
with:
args: deploy --only hosting -P batch4-161201
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_BATCH4_161201 }}