Skip to content

Commit

Permalink
fix: add secrets to durable tests workflow (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 authored Nov 2, 2023
1 parent 8cf979c commit ee0ff94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/run-durable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
type: choice
description: Durable infrastructure to run tests against
required: true
default: "dev"
default: dev
options:
- dev
- qa
Expand All @@ -18,7 +18,7 @@ on:
type: string
description: Build tag for image used for running tests
required: true
default: "latest"
default: latest
# The "job_id" input is needed for the CD manager to be able to track a workflow run as part of a CD manager job.
# The GitHub API does not return the workflow run ID for a run created via the API. In order to track a workflow,
# we're forced to inject the CD manager job ID via a tagged job step. This allows the CD manager to lookup
Expand All @@ -28,7 +28,12 @@ on:
type: string
description: Test job identifier
required: true
default: "manual"
default: manual

env:
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

jobs:
run-tests:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/schedule-durable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Schedule Durable tests

on:
schedule:
- cron: "0 0/8 * * *" # Every 8 hours
- cron: 0 0/8 * * * # Every 8 hours
workflow_dispatch:
inputs:
environment:
type: choice
description: "Environment name"
description: Durable infrastructure to run tests against
required: true
default: "all"
default: all
options:
- dev
- qa
Expand Down

0 comments on commit ee0ff94

Please sign in to comment.