Skip to content

Commit

Permalink
Revert "fix: add self-hosted runners"
Browse files Browse the repository at this point in the history
This reverts commit d7b7546.
  • Loading branch information
maximeperrault committed Jul 11, 2024
1 parent d7b7546 commit fa29727
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/cicd-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
jobs:
version:
name: Set application version and env profile
runs-on: [ ubuntu-22.04, self-hosted ]
runs-on: ubuntu-22.04
outputs:
ENV_PROFILE: ${{ steps.env_profile.outputs.ENV_PROFILE }}
VERSION: ${{ steps.version.outputs.VERSION }}
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
unit_test_backend:
name: Run backend unit tests
needs: version
runs-on: [ ubuntu-22.04, self-hosted ]
runs-on: ubuntu-22.04
env:
ENV_PROFILE: ${{needs.version.outputs.ENV_PROFILE}}
VERSION: ${{needs.version.outputs.VERSION}}
Expand All @@ -84,7 +84,7 @@ jobs:
unit_test_frontend:
name: Run frontend unit tests
needs: version
runs-on: [ ubuntu-22.04, self-hosted ]
runs-on: ubuntu-22.04
env:
PUPPETEER_SKIP_DOWNLOAD: "true"
steps:
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
build:
name: Build and package
needs: version
runs-on: [ ubuntu-22.04, self-hosted ]
runs-on: ubuntu-22.04
env:
ENV_PROFILE: ${{needs.version.outputs.ENV_PROFILE}}
VERSION: ${{needs.version.outputs.VERSION}}
Expand Down Expand Up @@ -176,16 +176,16 @@ jobs:

e2e_test:
name: Run E2E tests
needs: [ version, build ]
runs-on: [ ubuntu-22.04, self-hosted ]
needs: [version, build]
runs-on: ubuntu-22.04
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving the Dashboard hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
containers: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
Expand Down Expand Up @@ -239,15 +239,15 @@ jobs:
record: true
wait-on: "http://localhost:8880"
working-directory: ./frontend

- name: Display Docker container logs for debugging
if: failure()
run: docker logs monitorenv_backend

e2e_multi_windows_test:
name: Run E2E multi windows tests
needs: [ version, build ]
runs-on: [ ubuntu-22.04, self-hosted ]
needs: [version, build]
runs-on: ubuntu-22.04
if: false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Expand Down Expand Up @@ -295,8 +295,8 @@ jobs:

generate_and_upload_source_maps:
name: Generate and upload source maps to Sentry
needs: [ version, build, unit_test_backend, unit_test_frontend, e2e_test ]
runs-on: [ ubuntu-22.04, self-hosted ]
needs: [version, build, unit_test_backend, unit_test_frontend, e2e_test]
runs-on: ubuntu-22.04
env:
VERSION: ${{ needs.version.outputs.VERSION }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
Expand Down Expand Up @@ -336,9 +336,9 @@ jobs:

push_to_registry:
name: Push to registry
needs: [ version, unit_test_backend, unit_test_frontend, e2e_test, generate_and_upload_source_maps ]
needs: [version, unit_test_backend, unit_test_frontend, e2e_test, generate_and_upload_source_maps]
# needs: [version, e2e_test, e2e_multi_windows_test, unit_test_frontend, e2e_test]
runs-on: [ ubuntu-22.04, self-hosted ]
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/heads/dependabot') == false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cicd-database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: Build database image
runs-on: [ ubuntu-22.04, self-hosted ]
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cicd-datapipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:
build:
name: Build & test docker image
runs-on: [ ubuntu-22.04, self-hosted ]
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Publish monitor public API to GitHub Packages
on:
workflow_dispatch:
Expand All @@ -7,7 +8,7 @@ on:
default: 'v1.0.0'
jobs:
publish:
runs-on: [ ubuntu-22.04, self-hosted ]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
Expand All @@ -20,7 +21,7 @@ jobs:
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Replace the version number
run: sed -i -e "s/VERSION_TO_CHANGE/${{ github.event.inputs.version }}/g" backend/build.gradle.kts
run: sed -i -e "s/VERSION_TO_CHANGE/${{ github.event.inputs.version }}/g" backend/build.gradle.kts
- name: Publish package
uses: gradle/gradle-build-action@v3
with:
Expand Down

0 comments on commit fa29727

Please sign in to comment.