Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/gh-config-template/gh_template.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
#@ load("@ytt:data", "data")
#@ load("ytt-helpers.star", "helpers")
# test commit
name: unit-integration-tests

on:

pull_request_target:
branches:
- test-gh
types:
- opened
- reopened
- synchronize
- labeled

env:
MAPPING: |
Expand All @@ -38,13 +32,14 @@ env:

jobs:
repo-clone:
if: github.event.label.name == 'ready-to-run'
runs-on: ubuntu-latest
steps:
- name: routing-release-repo
uses: actions/checkout@v4
with:
repository: cloudfoundry/routing-release.git
ref: github-action
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
submodules: recursive
path: repo
- name: Check out wg-appruntime code
Expand All @@ -67,7 +62,10 @@ jobs:
runs-on: ubuntu-latest
needs: repo-clone
container:
image: cloudfoundry/tas-runtime-mysql-5.7
image: us-central1-docker.pkg.dev/cf-diego-pivotal/tas-runtime-dockerhub-mirror/cloudfoundry/tas-runtime-build
credentials:
username: _json_key
password: ${{ secrets.GCP_SERVICE_ACCOUNT_TAS_RUNTIME_BUILD_IMAGE_READER }}
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand All @@ -91,8 +89,8 @@ jobs:
with:
name: repo
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: template-tests
run: |
"${GITHUB_WORKSPACE}"/ci/shared/tasks/run-tests-templates/task.bash
Expand All @@ -83,7 +85,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz \n"
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand All @@ -93,18 +95,21 @@ jobs:
DIR: src/code.cloudfoundry.org/gorouter
DB: mysql
run: |
"${GITHUB_WORKSPACE}"/ci/routing-release/helpers/configure-binaries.bash
"${GITHUB_WORKSPACE}"/ci/shared/tasks/run-bin-test/task.bash --keep-going --trace -r --fail-on-pending --randomize-all --nodes=7 --race --timeout 30m --flake-attempts 2
- name: cf-tcp-router-mysql
env:
DIR: src/code.cloudfoundry.org/cf-tcp-router
DB: mysql
run: |
"${GITHUB_WORKSPACE}"/ci/routing-release/helpers/configure-binaries.bash
"${GITHUB_WORKSPACE}"/ci/shared/tasks/run-bin-test/task.bash --keep-going --trace -r --fail-on-pending --randomize-all --nodes=7 --race --timeout 30m --flake-attempts 2
- name: routing-api-mysql
env:
DIR: src/code.cloudfoundry.org/routing-api
DB: mysql
run: |
"${GITHUB_WORKSPACE}"/ci/routing-release/helpers/configure-binaries.bash
"${GITHUB_WORKSPACE}"/ci/shared/tasks/run-bin-test/task.bash --keep-going --trace -r --fail-on-pending --randomize-all --nodes=7 --race --timeout 30m --flake-attempts 2
test-repos-withoutdb:
runs-on: ubuntu-latest
Expand All @@ -119,7 +124,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand Down Expand Up @@ -155,7 +162,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand Down Expand Up @@ -191,7 +200,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand Down