Skip to content

Commit

Permalink
ci: create remote config and version file before try to build
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossantos74 committed Sep 13, 2024
1 parent 77c1b17 commit 2e69994
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create a .version.js file
run: |
touch .version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash -
touch packages/realtime/.version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash -
- name: Create a .remote-config.js file
run: |
touch .remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com' }};\" > .remote-config.js" | bash -
- name: Run tests
touch packages/realtime/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com' }};\" > .remote-config.js" | bash -
- name: Run builds
run: pnpm run build
test-unit-realtime:
runs-on: ubuntu-latest
Expand All @@ -66,10 +66,10 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create a .version.js file
run: |
touch .version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash -
touch packages/realtime/.version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash -
- name: Create a .remote-config.js file
run: |
touch .remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com' }};\" > .remote-config.js" | bash -
touch packages/realtime/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com' }};\" > .remote-config.js" | bash -
- name: Run tests
run: pnpm run test:unit:ci --filter=@superviz/realtime
- name: Post PR Comment
Expand Down

0 comments on commit 2e69994

Please sign in to comment.