-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci/ci.yml: Redefine jobs in a re-usable way
ci.sh has been changed to support the --next-branch-tracking flag. This flag will not be used in the jobs defined in ci.yml but it will used in those jobs in a nightly frequency. * Set-up base job definitions that are going to be re-used in different workflows. * Use those re-usable actions in the ci.yml the same way that they were being used before. Signed-off-by: Tomás González <[email protected]>
- Loading branch information
1 parent
3873e91
commit 387f26c
Showing
7 changed files
with
138 additions
and
42 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,20 @@ | ||
name: "All Providers Tests" | ||
description: "Various tests targeting a Parsec image with all providers included" | ||
inputs: | ||
ci-flags-all-providers: | ||
required: true | ||
description: "Flags with which to run the all providers ci tests" | ||
# ...name, description and inputs as above | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Load Docker | ||
uses: ./.github/actions/load_docker | ||
if: ${{ env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all' }} | ||
with: | ||
image-name: "${{ env.TEST_ALL_DOCKER_IMAGE }}" | ||
image-path: "/tmp" | ||
- name: Run the container to execute the test script | ||
run: docker run -v $(pwd):/tmp/parsec -w /tmp/parsec -t ${{ env.TEST_ALL_DOCKER_IMAGE }} /tmp/parsec/ci.sh ${{ inputs.ci-flags-all-providers }} all | ||
shell: bash |
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,20 @@ | ||
name: "Build All Providers Tests" | ||
description: "Cargo check all-providers (current Rust stable & old compiler)" | ||
inputs: | ||
ci-flags-all-providers: | ||
required: true | ||
description: "Flags with which to run the build all providers ci tests" | ||
# ...name, description and inputs as above | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Load Docker | ||
uses: ./.github/actions/load_docker | ||
if: ${{ env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all' }} | ||
with: | ||
image-name: "${{ env.TEST_ALL_DOCKER_IMAGE }}" | ||
image-path: "/tmp" | ||
- name: Run the container to execute the test script | ||
run: docker run -v $(pwd):/tmp/parsec -w /tmp/parsec -t ${{ env.TEST_ALL_DOCKER_IMAGE }} /tmp/parsec/ci.sh ${{ inputs.ci-flags-all-providers }} cargo-check | ||
shell: bash |
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,20 @@ | ||
name: "Build Mbed Crypto Provider Tests" | ||
description: "Integration tests using Mbed Crypto provider" | ||
inputs: | ||
ci-flags-mbed-crypto-provider: | ||
required: true | ||
description: "Flags with which to run the build Mbed Crypto provider ci tests" | ||
# ...name, description and inputs as above | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Load Docker | ||
uses: ./.github/actions/load_docker | ||
if: ${{ env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all' }} | ||
with: | ||
image-name: "${{ env.TEST_ALL_DOCKER_IMAGE }}" | ||
image-path: "/tmp" | ||
- name: Run the container to execute the test script | ||
run: docker run -v $(pwd):/tmp/parsec -w /tmp/parsec -t ${{ env.TEST_ALL_DOCKER_IMAGE }} /tmp/parsec/ci.sh ${{ inputs.ci-flags-mbed-crypto-provider }} mbed-crypto | ||
shell: bash |
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,20 @@ | ||
name: "PKCS11 Provider Tests" | ||
description: "Integration tests using PKCS 11 provider" | ||
inputs: | ||
ci-flags-pkcs11-provider: | ||
required: true | ||
description: "Flags with which to run the pkcs11 provider ci tests" | ||
# ...name, description and inputs as above | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Load Docker | ||
uses: ./.github/actions/load_docker | ||
if: ${{ env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all' }} | ||
with: | ||
image-name: "${{ env.TEST_ALL_DOCKER_IMAGE }}" | ||
image-path: "/tmp" | ||
- name: Run the container to execute the test script | ||
run: docker run -v $(pwd):/tmp/parsec -w /tmp/parsec -t ${{ env.TEST_ALL_DOCKER_IMAGE }} /tmp/parsec/ci.sh ${{ inputs.ci-flags-pkcs11-provider }} pkcs11 | ||
shell: bash |
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,20 @@ | ||
name: "TPM Provider Tests" | ||
description: "Integration tests using TPM provider" | ||
inputs: | ||
ci-flags-tpm-provider: | ||
required: true | ||
description: "Flags with which to run the tpm provider ci tests" | ||
# ...name, description and inputs as above | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Load Docker | ||
uses: ./.github/actions/load_docker | ||
if: ${{ env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all' }} | ||
with: | ||
image-name: "${{ env.TEST_ALL_DOCKER_IMAGE }}" | ||
image-path: "/tmp" | ||
- name: Run the container to execute the test script | ||
run: docker run -v $(pwd):/tmp/parsec -w /tmp/parsec -t ${{ env.TEST_ALL_DOCKER_IMAGE }} /tmp/parsec/ci.sh ${{ inputs.ci-flags-tpm-provider }} tpm | ||
shell: bash |
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,20 @@ | ||
name: "Trusted Service Provider Tests" | ||
description: "Integration tests using Crypto Trusted Service provider" | ||
inputs: | ||
ci-flags-trusted-service-provider: | ||
required: true | ||
description: "Flags with which to run the trusted service provider ci tests" | ||
# ...name, description and inputs as above | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Load Docker | ||
uses: ./.github/actions/load_docker | ||
if: ${{ env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all' }} | ||
with: | ||
image-name: "${{ env.TEST_ALL_DOCKER_IMAGE }}" | ||
image-path: "/tmp" | ||
- name: Run the container to execute the test script | ||
run: docker run -v $(pwd):/tmp/parsec -w /tmp/parsec -t ${{ env.TEST_ALL_DOCKER_IMAGE }} /tmp/parsec/ci.sh ${{ inputs.ci-flags-trusted-service-provider }} trusted-service | ||
shell: bash |
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