Skip to content

Commit

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

* sync

* fix licenses

* sync

* fix tag
  • Loading branch information
MP91 authored Feb 1, 2024
1 parent f99f124 commit 278cd41
Show file tree
Hide file tree
Showing 13 changed files with 85 additions and 75 deletions.
4 changes: 2 additions & 2 deletions .github/actions/pre-commit-action/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation
# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down Expand Up @@ -27,7 +27,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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation
# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/deploy_image_from_artifact.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation
# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation
# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down Expand Up @@ -35,25 +35,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 @@ -87,7 +87,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 @@ -140,14 +140,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 @@ -158,7 +158,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 @@ -168,7 +168,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 @@ -180,7 +180,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 @@ -192,7 +192,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
4 changes: 2 additions & 2 deletions .github/workflows/build-multiarch-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation
# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:

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

- name: Get app-name
id: export-app-name
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/check-devcontainer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2023 Robert Bosch GmbH
# Copyright (c) 2023-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down Expand Up @@ -27,14 +27,13 @@ on:
schedule:
- cron: "0 4 * * *"


jobs:
automated-tests:
runs-on: ubuntu-22.04

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 @@ -44,7 +43,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
11 changes: 6 additions & 5 deletions .github/workflows/check-licenses.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2022-2023 Robert Bosch GmbH
# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down Expand Up @@ -34,10 +34,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 @@ -52,8 +52,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 @@ -64,7 +65,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
42 changes: 26 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation
# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:

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

- uses: de-vri-es/setup-git-credentials@v2
with:
Expand All @@ -62,7 +62,7 @@ jobs:
uses: ./.github/actions/pre-commit-action

- name: Clone Release Documentation Action repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: eclipse-velocitas/release-documentation-action
path: "./.github/release-documentation/actions"
Expand All @@ -78,7 +78,7 @@ jobs:
--cov-branch ./app/tests/unit
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: ./results/UnitTest/junit.xml
Expand Down Expand Up @@ -117,10 +117,10 @@ jobs:
packagePath: results/Documentation/renderer

- name: Upload test results as artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: "test-results"
name: "test-results-unit-tests"
path: |
results/Documentation/renderer/*
Expand All @@ -132,7 +132,7 @@ jobs:

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

- name: Get app-name
id: export-app-name
Expand All @@ -155,9 +155,9 @@ jobs:
APP_NAME: ${{ needs.get-app-name.outputs.app_name }}
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 @@ -172,7 +172,7 @@ jobs:
velocitas init
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -195,12 +195,12 @@ jobs:

- 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 }}

- name: Download stored image from artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
env:
VAPP_IMAGE: ${{ env.APP_NAME }}-amd64
with:
Expand All @@ -221,7 +221,7 @@ jobs:
pytest ./app/tests/integration --override-ini junit_family=xunit1 --junit-xml=./results/IntTest/junit.xml
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: ./results/IntTest/junit.xml
Expand All @@ -230,7 +230,7 @@ jobs:
annotate_only: true

- name: Clone release documentation action repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: eclipse-velocitas/release-documentation-action
path: "./.github/actions"
Expand All @@ -245,9 +245,19 @@ jobs:
packagePath: ./results/Documentation/renderer

- name: Upload integration test results as artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: "test-results"
name: "test-results-integration-tests"
path: |
results/Documentation/renderer/*
merge-test-results:
runs-on: ubuntu-latest
needs: run-integration-tests
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: test-results
pattern: test-results-*
4 changes: 2 additions & 2 deletions .github/workflows/ensure-lifecycle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2023 Robert Bosch GmbH
# Copyright (c) 2023-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:

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

- name: Run CLI
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/gen-desired-state.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
# Copyright (c) 2023 Robert Bosch GmbH
# Copyright (c) 2023-2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
Expand Down Expand Up @@ -29,9 +29,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 @@ -46,7 +46,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
Loading

0 comments on commit 278cd41

Please sign in to comment.