Skip to content

ci: update gh actions #778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/build_export_docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
run: docker save ${{ inputs.image-name }} > /tmp/${{ inputs.image-name }}.tar
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.image-name }}
path: /tmp/${{ inputs.image-name }}.tar
4 changes: 2 additions & 2 deletions .github/actions/load_docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.image-name }}
path: ${{ inputs.image-path }}
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
# For running this job we need to manually trigger the CI and set the variable
if: ${{ github.event.inputs.trigger_test_all_docker == 'parsec-service-test-all' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build and Export Docker Image
uses: ./.github/actions/build_export_docker
with:
Expand All @@ -35,7 +35,7 @@ jobs:
# For running this job we need to manually trigger the CI and set the variable
if: ${{ github.event.inputs.trigger_test_cross_docker == 'parsec-service-test-cross-compile' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build and Export Docker Image
uses: ./.github/actions/build_export_docker
with:
Expand All @@ -47,7 +47,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the container to execute the test script
uses: ./.github/actions/ci_script
with:
Expand All @@ -59,7 +59,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the container to execute the test script
uses: ./.github/actions/ci_script
with:
Expand All @@ -72,7 +72,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the container to execute the test script
uses: ./.github/actions/ci_script
with:
Expand All @@ -84,7 +84,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the container to execute the test script
uses: ./.github/actions/ci_script
with:
Expand All @@ -96,7 +96,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the container to execute the test script
uses: ./.github/actions/ci_script
with:
Expand All @@ -108,7 +108,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the container to execute the test script
uses: ./.github/actions/ci_script
with:
Expand All @@ -120,7 +120,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the container to execute the test script
uses: ./.github/actions/ci_script
with:
Expand All @@ -132,7 +132,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the container to execute the test script
uses: ./.github/actions/ci_script
with:
Expand All @@ -144,7 +144,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Load Docker
uses: ./.github/actions/load_docker
if: ${{ env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all' }}
Expand All @@ -166,7 +166,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-test-all-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the container to execute the test script
uses: ./.github/actions/ci_script
with:
Expand All @@ -179,7 +179,7 @@ jobs:
if: ${{ always() }}
needs: [build-and-export-cross-compile-docker]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Load Docker
uses: ./.github/actions/load_docker
if: ${{ env.TEST_CROSS_DOCKER_IMAGE == 'parsec-service-test-cross-compile' }}
Expand All @@ -197,7 +197,7 @@ jobs:
name: Check links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Link Checker
uses: peter-evans/link-checker@v1
with:
Expand All @@ -209,14 +209,14 @@ jobs:
name: "Run cargo deny"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v2

mismatcher:
name: Check for mismatched dependencies (those that have more than one version)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Run the container to execute the dependency mismatcher script
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/nightly-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: Various tests targeting a Parsec image with all providers included
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Run the container to execute the test script
Expand All @@ -32,7 +32,7 @@ jobs:
name: Cargo check all-providers (current Rust stable & old compiler)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Run the container to execute the test script
Expand All @@ -44,7 +44,7 @@ jobs:
name: Integration tests using Mbed Crypto provider
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Run the container to execute the test script
Expand All @@ -56,7 +56,7 @@ jobs:
name: Integration tests using PKCS 11 provider
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Run the container to execute the test script
Expand All @@ -68,7 +68,7 @@ jobs:
name: Integration tests using TPM provider
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Run the container to execute the test script
Expand All @@ -80,7 +80,7 @@ jobs:
name: Integration tests using Crypto Trusted Service provider
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Run the container to execute the test script
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ jobs:
name: Check for unused dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Install latest Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
rustflags: ""
- name: Install cargo udeps
run: cargo install cargo-udeps --locked
- name: Execute cargo udeps
Expand All @@ -32,13 +33,14 @@ jobs:
name: Check for crates with security vulnerabilities
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Install latest Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
rustflags: ""
- name: Install cargo audit
run: cargo install cargo-audit
- name: Execute cargo audit
Expand All @@ -51,7 +53,7 @@ jobs:
name: Gather coverage data and upload to Codecov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.rev }}"
- name: Run the container to execute the coverage script
Expand Down
Loading