Skip to content

Commit

Permalink
add tests for common to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix committed Nov 20, 2024
1 parent c1d42eb commit 751cb18
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ env:
WORKSPACE_ARTIFACT_CDK: 'explore_flights_cdk_artifact'

jobs:
test_common:
name: 'Test common'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Setup go'
uses: actions/setup-go@v5
with:
go-version-file: 'go/common/go.mod'
cache-dependency-path: 'go/common/go.sum'
- name: 'Test'
working-directory: 'go/common'
run: 'go test ./...'

build_and_test_api:
name: 'Build and test API'
runs-on: ubuntu-latest
Expand Down Expand Up @@ -132,6 +147,7 @@ jobs:
name: 'Build and synth cdk'
runs-on: ubuntu-latest
needs:
- test_common
- build_and_test_api
- build_and_test_cron
- build_ui
Expand Down

0 comments on commit 751cb18

Please sign in to comment.