Skip to content

Commit

Permalink
fixes in ga workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitasen-ubmainz committed Aug 25, 2021
1 parent 47b9e52 commit 312f103
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/buildnpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
JEST_COVERAGE_REPORT_DIR: 'artifacts/coverage-jest/lcov-report/'
BIGTEST_JUNIT_OUTPUT_DIR: 'artifacts/runTest'
BIGTEST_COVERAGE_REPORT_DIR: 'artifacts/coverage/lcov-report/'
PUBLISH_MOD_DESCRIPTOR: true
PUBLISH_MOD_DESCRIPTOR: 'true'
SQ_ROOT_DIR: './src'
COMPILE_TRANSLATION_FILES: true
COMPILE_TRANSLATION_FILES: 'true'
SQ_LCOV_REPORT: 'artifacts/coverage-jest/lcov.info'
SQ_EXCLUSIONS: '**/platform/alias-service.js,**/docs/**,**/node_modules/**,**/examples/**,**/artifacts/**,**/ci/**,Jenkinsfile,**/LICENSE,**/*.css,**/*.md,**/*.json,**/tests/**,**/stories/*.js,**/test/**,**/.stories.js,**/resources/bigtest/interactors/**,**/resources/bigtest/network/**,**/*-test.js,**/*.test.js,**/*-spec.js,**/karma.conf.js,**/jest.config.js'

Expand Down Expand Up @@ -72,15 +72,15 @@ jobs:
run: xvfb-run --server-args="-screen 0 1024x768x24" yarn test $YARN_TEST_OPTIONS

- name: Run yarn formatjs-compile
if : ${{ env.COMPILE_TRANSLATION_FILES }}
if : ${{ env.COMPILE_TRANSLATION_FILES == 'true' }}
run: yarn formatjs-compile

- name: Generate Module descriptor
if: ${{ env.PUBLISH_MOD_DESCRIPTOR }}
if: ${{ env.PUBLISH_MOD_DESCRIPTOR == 'true' }}
run: yarn build-mod-descriptor

- name: debug mod descriptor
if: ${{ env.PUBLISH_MOD_DESCRIPTOR }}
if: ${{ env.PUBLISH_MOD_DESCRIPTOR == 'true' }}
run: cat module-descriptor.json

- name: Publish Jest unit test results
Expand Down Expand Up @@ -166,14 +166,14 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Read module descriptor
if: ${{ env.PUBLISH_MOD_DESCRIPTOR && github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
if: ${{ env.PUBLISH_MOD_DESCRIPTOR == 'true' && github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
id: moduleDescriptor
uses: juliangruber/read-file-action@v1
with:
path: ./module-descriptor.json

- name: Publish module descriptor
if: ${{ env.PUBLISH_MOD_DESCRIPTOR && github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
if: ${{ env.PUBLISH_MOD_DESCRIPTOR == 'true' && github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
id: modDescriptorPost
uses: fjogeleit/http-request-action@master
with:
Expand Down
File renamed without changes.

0 comments on commit 312f103

Please sign in to comment.