Skip to content

[patch] fix gha for pushing to stage #1

[patch] fix gha for pushing to stage

[patch] fix gha for pushing to stage #1

Workflow file for this run

name: Deploy Staging
on: push
env:
NODE_VERSION: 18
JAVA_VERSION: 11
JAVA_DISTRIBUTION: 'adopt'
jobs:
build-push:
name: run tests, build and push
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- name: Install Node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install dependencies
run: npm run ci
- name: Lint tests
run: npm run lint
- name: Run tests
id: runTests
run: npm run test
- name: Run coverage
id: runCover
if: steps.runTests.outcome == 'success'
run: npm run cover
- name: upload codecov
uses: codecov/codecov-action@v4
if: steps.runCover.outcome == 'success'
- name: Call the Build bash script for QA
# if: ${{ github.ref == 'refs/heads/master' }}
id: build
run: |
./deployment/deploy-qa.sh