-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out CI and deployment pipelines
This should do a few things: 1) Make it easier to see only the pipeline runs that are doing actual deployments to environments. Currently these are intermingled with CI test runs. 2) Disable the DB migrations check on the deployment pipeline. This check is used for CI only, because in some situations we might expect (and want) it to fail.
- Loading branch information
1 parent
fcd9a0e
commit 9a56535
Showing
2 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build and unit test | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
setup: | ||
uses: communitiesuk/funding-service-design-workflows/.github/workflows/determine-jobs.yml@main | ||
with: | ||
environment: ${{ inputs.environment }} | ||
|
||
pre_deploy_tests: | ||
uses: communitiesuk/funding-service-design-workflows/.github/workflows/pre-deploy.yml@main | ||
with: | ||
postgres_unit_testing: true | ||
check_db_migrations: true | ||
assets_required: true | ||
|
||
type_checks: | ||
if: ${{ ! contains(fromJSON(needs.setup.outputs.jobs_to_run), 'dev') }} | ||
needs: [setup] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5 | ||
with: | ||
python-version: 3.10.x | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5 | ||
with: | ||
enable-cache: true | ||
- name: install dependencies | ||
run: uv sync | ||
- name: run type checking | ||
run: uv run mypy | ||
|
||
paketo_build: | ||
needs: [ setup ] | ||
permissions: | ||
packages: write | ||
uses: communitiesuk/funding-service-design-workflows/.github/workflows/package.yml@main | ||
with: | ||
version_to_build: ${{ github.sha }} | ||
owner: ${{ github.repository_owner }} | ||
application: funding-service-pre-award | ||
assets_required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters