[SDK-2072] Create GHA to sync release notes with ReadMe Version History #55
Workflow file for this run
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: Gate Keeping | |
on: | |
pull_request: | |
types: [opened,reopened,edited,synchronize] | |
branches: | |
- master | |
- production | |
paths-ignore: | |
- docs/** | |
- README.md | |
env: | |
NODE_VERSION: 16 | |
JAVA_VERSION: 11 | |
JAVA_DISTRIBUTION: 'adopt' | |
jobs: | |
test-unit: | |
name: Unit tests | |
runs-on: [ ubuntu-latest ] | |
steps: | |
- name: Checkout ${{ github.ref_name }} | |
uses: actions/checkout@v3 | |
- 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: Run tests | |
run: npm run test-report | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: Unit Tests | |
fail-on-error: true, | |
path: test-results.json # Path to test results | |
reporter: mocha-json # Format of test results | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
id: test-results | |
if: always() | |
with: | |
files: "test-results.json" | |
- name: Run cover | |
run: npm run cover | |
- name : upload codecov | |
uses: codecov/codecov-action@v3 | |
test-lint: | |
name: Lint | |
runs-on: [ ubuntu-latest ] | |
steps: | |
- name: Checkout ${{ github.ref_name }} | |
uses: actions/checkout@v3 | |
- 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 | |
test-build: | |
name: Test-build | |
needs: [test-unit,test-lint] | |
runs-on: [ ubuntu-latest ] | |
steps: | |
- name: Checkout ${{ github.ref_name }} | |
uses: actions/checkout@v3 | |
- name: Install Node ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'npm' | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
distribution: ${{ env.JAVA_DISTRIBUTION }} | |
- name: Install dependencies | |
run: npm run ci | |
- name: Call the Build bash script for QA | |
run: bash ${GITHUB_WORKSPACE}/deployment/build-test.sh | |