[patch] fix gha for pushing to stage #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |