Skip to content

Commit

Permalink
ci: replace all reusable workflows with hotosm/gh-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 22, 2023
1 parent 9cc4c79 commit 35cdf24
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 194 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ on:

jobs:
pytest:
uses: ./.github/workflows/r-pytest.yml
uses: hotosm/gh-workflows/.github/workflows/test_pytest_compose.yml@main
with:
# TODO update to build image prior to test, like r-pytest.yml?
# Would prevent failures if the CI image does not contain new deps yet
image_tag: ci-${{ github.ref_name }}
docker_compose_service: api
secrets: inherit

frontend-tests:
uses: ./.github/workflows/r-frontend_tests.yml
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@main
with:
working_dir: src/frontend

backend-build:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_test_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
pytest:
uses: ./.github/workflows/r-pytest.yml
uses: hotosm/gh-workflows/.github/workflows/test_pytest_compose.yml@main
with:
docker_compose_service: api
cache_imgs: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr_test_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ on:

jobs:
frontend-tests:
uses: ./.github/workflows/r-frontend_tests.yml
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@main
with:
working_dir: src/frontend
32 changes: 0 additions & 32 deletions .github/workflows/r-frontend_tests.yml

This file was deleted.

156 changes: 0 additions & 156 deletions .github/workflows/r-pytest.yml

This file was deleted.

0 comments on commit 35cdf24

Please sign in to comment.