correcting bug with async env

pull/496/head
Frostebite 2023-01-22 01:15:30 +00:00
parent 71ef2473cd
commit d70625087c
4 changed files with 16 additions and 11 deletions

View File

@ -51,22 +51,25 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
lfs: false lfs: false
- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: Get GKE cluster credentials
run: |
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
gcloud components install gke-gcloud-auth-plugin
gcloud container clusters get-credentials $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT
- name: Configure AWS Credentials - name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1 uses: aws-actions/configure-aws-credentials@v1
with: with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2 aws-region: eu-west-2
- uses: google-github-actions/auth@v1
if: matrix.CloudRunnerCluster == 'k8s'
with:
credentials_json: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}
- name: 'Set up Cloud SDK'
if: matrix.CloudRunnerCluster == 'k8s'
uses: 'google-github-actions/setup-gcloud@v1'
- name: Get GKE cluster credentials
if: matrix.CloudRunnerCluster == 'k8s'
run: |
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
gcloud components install gke-gcloud-auth-plugin
gcloud container clusters get-credentials $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT
- run: yarn - run: yarn
- run: yarn run test "cloud-runner-async-workflow" --detectOpenHandles --forceExit --runInBand - run: yarn run test "cloud-runner-async-workflow" --detectOpenHandles --forceExit --runInBand
timeout-minutes: 10 timeout-minutes: 10

1
dist/index.js generated vendored
View File

@ -6538,6 +6538,7 @@ class GitHub {
repo: GitHub.repo, repo: GitHub.repo,
}); });
const workflows = workflowsResult.data.workflows; const workflows = workflowsResult.data.workflows;
cloud_runner_logger_1.default.log(`Got ${workflows} workflows`);
let selectedId = ``; let selectedId = ``;
for (let index = 0; index < workflowsResult.data.total_count; index++) { for (let index = 0; index < workflowsResult.data.total_count; index++) {
if (workflows[index].name === GitHub.asyncChecksApiWorkflowName) { if (workflows[index].name === GitHub.asyncChecksApiWorkflowName) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -142,6 +142,7 @@ class GitHub {
repo: GitHub.repo, repo: GitHub.repo,
}); });
const workflows = workflowsResult.data.workflows; const workflows = workflowsResult.data.workflows;
CloudRunnerLogger.log(`Got ${workflows} workflows`);
let selectedId = ``; let selectedId = ``;
for (let index = 0; index < workflowsResult.data.total_count; index++) { for (let index = 0; index < workflowsResult.data.total_count; index++) {
if (workflows[index].name === GitHub.asyncChecksApiWorkflowName) { if (workflows[index].name === GitHub.asyncChecksApiWorkflowName) {