Skip to content

Commit

Permalink
update all actions (#49)
Browse files Browse the repository at this point in the history
* update all actions

* fix artifacts

* fix java action
  • Loading branch information
MP91 authored Jan 31, 2024
1 parent d11afbe commit 7e73089
Show file tree
Hide file tree
Showing 17 changed files with 86 additions and 75 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout template repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: eclipse-velocitas/vehicle-app-${{ matrix.language }}-template
path: test/${{ matrix.language }}/repo
Expand Down
26 changes: 13 additions & 13 deletions src/app/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"

- name: Clone Release Documentation Action repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: eclipse-velocitas/release-documentation-action
path: "./.github/actions"

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- id: github-repository-name-case-adjusted
name: Prepare repository name in lower case for docker upload. This supports repository names in mixed case
uses: ASzc/change-string-case-action@v5
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository }}

Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:

- name: "${{ env.APP_NAME }} -- Build image"
id: image_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
provenance: false
pull: true
Expand Down Expand Up @@ -139,14 +139,14 @@ jobs:

- name: "${{ env.APP_NAME }} -- Upload trivy report as artifacts"
if: ${{ always() && steps.image_build.outcome == 'success' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
name: test-results-trivy
path: |
results/Documentation/renderer/*
- name: "${{ env.APP_NAME }} -- Publish Trivy Scan Results"
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v4
if: ${{ always() && steps.image_build.outcome == 'success' }}
with:
check_name: Trivy Scan Results (${{ env.APP_NAME }})
Expand All @@ -157,7 +157,7 @@ jobs:

- name: "${{ env.APP_NAME }} -- Upload image to artifacts"
if: ${{ steps.image_build.outcome == 'success' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
env:
VAPP_IMAGE: ${{ env.APP_NAME }}-${{ inputs.platform }}
with:
Expand All @@ -167,7 +167,7 @@ jobs:

- name: "${{ env.APP_NAME }} -- Upload AppManifest.json to artifacts"
if: ${{ steps.image_build.outcome == 'success' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: AppManifest
path: ./app/AppManifest.json
Expand All @@ -179,7 +179,7 @@ jobs:
- name: "${{ env.APP_NAME }} -- Upload generated podspec.yaml"
if: ${{ steps.image_build.outcome == 'success' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Podspec
path: ./podspec.yaml
Expand All @@ -191,7 +191,7 @@ jobs:
- name: "${{ env.APP_NAME }} -- Upload generated helm chart"
if: ${{ steps.image_build.outcome == 'success' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: HelmChart
path: ./helm
Expand Down
2 changes: 1 addition & 1 deletion src/app/workflows/build-multiarch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get app-name
id: export-app-name
Expand Down
4 changes: 2 additions & 2 deletions src/common/workflows/check-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build devcontainer and run automated tests
uses: devcontainers/ci@v0.3
Expand All @@ -42,7 +42,7 @@ jobs:
pytest -sx .devcontainer/tests
- name: Upload logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: logs
Expand Down
9 changes: 5 additions & 4 deletions src/common/workflows/check-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Clone License Check Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: eclipse-velocitas/license-check
ref: v1.2.3
Expand All @@ -51,8 +51,9 @@ jobs:
generate-dash: true

- name: Setup Java JDK
uses: actions/setup-java@v1.4.4
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11.0.19

- name: Run dash
Expand All @@ -63,7 +64,7 @@ jobs:
java -jar dash.jar clearlydefined.input -summary DEPENDENCIES
- name: Upload dash input/output as artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: "dash-artifacts"
Expand Down
2 changes: 1 addition & 1 deletion src/common/workflows/ensure-lifecycle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run CLI
run: |
Expand Down
6 changes: 3 additions & 3 deletions src/common/workflows/gen-desired-state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"

Expand All @@ -45,7 +45,7 @@ jobs:

- id: github-repository-name-case-adjusted
name: Prepare repository name in lower case for docker upload.
uses: ASzc/change-string-case-action@v5
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository }}

Expand Down
4 changes: 2 additions & 2 deletions src/cpp-app/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
name: "Build, Test and Lint"
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"

Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
output: both

- name: Upload test-results as artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
Expand Down
16 changes: 8 additions & 8 deletions src/cpp-app/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get app-name
id: export-app-name
Expand All @@ -51,23 +51,23 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- id: get_version
uses: battila7/get-version-action@v2

- run: echo "Using VehicleApp version ${{ steps.get_version.outputs.version-without-v }} from tag"

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: github-repository-name-case-adjusted
name: Prepare repository name in lower case for docker upload.
uses: ASzc/change-string-case-action@v5
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository }}

Expand All @@ -80,7 +80,7 @@ jobs:
intervalSeconds: 20

- name: Download builds from Build multiarch image workflow artifacts
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build-multiarch-image.yml
Expand Down Expand Up @@ -118,9 +118,9 @@ jobs:
name: Generate release documentation
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18"
check-latest: true
Expand All @@ -142,7 +142,7 @@ jobs:
intervalSeconds: 30

- name: Download artifact from CI workflow
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3
with:
workflow: ci.yml
workflow_conclusion: success
Expand Down
4 changes: 2 additions & 2 deletions src/cpp-sdk/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
name: "Build, Test and Lint"
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Clone vehicle_model repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: eclipse-velocitas/vehicle-model-cpp
path: "./app/vehicle_model"
Expand Down
12 changes: 6 additions & 6 deletions src/cpp-sdk/workflows/sdk-build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,33 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
version: v0.9.0

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
- name: "Build image"
id: image_build
uses: docker/build-push-action@v3.2.0
uses: docker/build-push-action@v5
with:
push: true
file: sdk/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion src/python-app/actions/pre-commit-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
shell: bash
- run: python -m pip freeze --local
shell: bash
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
Expand Down
Loading

0 comments on commit 7e73089

Please sign in to comment.