forked from hotosm/tasking-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: job workflow as per circleci existing workflow
- Loading branch information
1 parent
f6658b2
commit e5de9ce
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ jobs: | |
docker compose --file docker-compose.yml logs tm-backend | ||
compose_service: tm-backend | ||
build_target: prod | ||
# TODO: Compose command to be updated once dev have test setup running. For now just a simple curl command. | ||
compose_command: curl -i http://localhost:5000/api/v2/ | ||
tag_override: ci-${{ github.ref_name }} | ||
# coverage: true | ||
|
@@ -34,6 +35,8 @@ jobs: | |
secrets: inherit | ||
|
||
backend-build: | ||
needs: | ||
- backend-test | ||
uses: hotosm/gh-workflows/.github/workflows/[email protected] | ||
with: | ||
context: . | ||
|
@@ -51,6 +54,7 @@ jobs: | |
context: ./frontend | ||
cache-key-file: ./frontend/yarn.lock | ||
package-manager: yarn | ||
# TODO: Verify this with frontend team | ||
test_frontend_command: | | ||
CI=true yarn test -w 1 | ||
# test_frontend_build: false | ||
|
@@ -60,6 +64,8 @@ jobs: | |
frontend-build: | ||
uses: naxa-developers/tasking-manager/.github/workflows/frontend-build.yml@ci-gh-workflows | ||
secrets: inherit | ||
needs: | ||
- frontend-test | ||
with: | ||
node-version: 16.x | ||
context: ./frontend | ||
|
@@ -88,8 +94,8 @@ jobs: | |
backend_deploy_to_vm: | ||
name: Deploy Backend to VM | ||
needs: | ||
- backend-test | ||
- backend-build | ||
- frontend-build | ||
uses: naxa-developers/tasking-manager/.github/workflows/remote_deploy_compose.yml@ci-gh-workflows | ||
with: | ||
docker_compose_file: docker-compose.yml | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ on: | |
|
||
|
||
jobs: | ||
node-build: | ||
frontend-test: | ||
runs-on: ${{ inputs.runner-class }} | ||
|
||
environment: | ||
|