fix: use custom image for crate test and lint
All checks were successful
Test / get-ci-image (pull_request) Successful in 6s
Test / test-frontend (pull_request) Successful in 11s
Test / lint-frontend (pull_request) Successful in 13s
Test / frontend-build (pull_request) Successful in 13s
Verify / get-ci-image (pull_request) Successful in 5s
Test / lint-crates (pull_request) Successful in 2m1s
Test / test-crates (pull_request) Successful in 2m12s
Verify / verify-generated-db-entities (pull_request) Successful in 2m40s
All checks were successful
Test / get-ci-image (pull_request) Successful in 6s
Test / test-frontend (pull_request) Successful in 11s
Test / lint-frontend (pull_request) Successful in 13s
Test / frontend-build (pull_request) Successful in 13s
Verify / get-ci-image (pull_request) Successful in 5s
Test / lint-crates (pull_request) Successful in 2m1s
Test / test-crates (pull_request) Successful in 2m12s
Verify / verify-generated-db-entities (pull_request) Successful in 2m40s
This commit is contained in:
29
.github/workflows/test.yaml
vendored
29
.github/workflows/test.yaml
vendored
@@ -11,9 +11,28 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-crates:
|
get-ci-image:
|
||||||
needs: frontend-build
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
image_tag: ${{ steps.setup.outputs.image_tag }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup CI metadata
|
||||||
|
id: setup
|
||||||
|
uses: ./.github/actions/setup-ci-metadata
|
||||||
|
with:
|
||||||
|
registry: ${{ secrets.OVERRIDE_REGISTRY }}
|
||||||
|
image_tag: latest
|
||||||
|
|
||||||
|
test-crates:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- frontend-build
|
||||||
|
- get-ci-image
|
||||||
|
container:
|
||||||
|
image: ${{ needs.get-ci-image.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -35,8 +54,12 @@ jobs:
|
|||||||
run: cargo test --all-features
|
run: cargo test --all-features
|
||||||
|
|
||||||
lint-crates:
|
lint-crates:
|
||||||
needs: frontend-build
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- frontend-build
|
||||||
|
- get-ci-image
|
||||||
|
container:
|
||||||
|
image: ${{ needs.get-ci-image.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user