Skip to content

Commit 7d01c83

Browse files
authored
Upgrade actions and remove Code Climate step
Updated GitHub Actions to use the latest versions of checkout, upload-artifact, and download-artifact actions. Removed the Code Climate step from the CI workflow.
1 parent b44c97f commit 7d01c83

File tree

1 file changed

+9
-29
lines changed

1 file changed

+9
-29
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ jobs:
1717
if: startsWith(github.ref, 'dockerfile-image-update-') == false
1818
steps:
1919
- name: checkout
20-
uses: actions/checkout@main
20+
uses: actions/checkout@v4
2121
with:
2222
ref: ${{ github.ref }}
2323
- name: docker build
2424
run: make mvn-docker-build get-main-project-dirs
2525
- name: Upload main module
26-
uses: actions/upload-artifact@v1
26+
uses: actions/upload-artifact@v4
2727
with:
2828
name: dockerfile-image-update
2929
path: dockerfile-image-update
3030
- name: Upload itest module
31-
uses: actions/upload-artifact@v1
31+
uses: actions/upload-artifact@v4
3232
with:
3333
name: dockerfile-image-update-itest
3434
path: dockerfile-image-update-itest
@@ -39,7 +39,7 @@ jobs:
3939
version: ${{ steps.version_tag.outputs.new_version }}
4040
steps:
4141
- name: checkout
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
4545
- name: get version
@@ -52,13 +52,14 @@ jobs:
5252
needs: [build-test, get-next-version]
5353
steps:
5454
- name: checkout
55-
uses: actions/checkout@main
55+
uses: actions/checkout@v4
5656
with:
5757
ref: ${{ github.ref }}
5858
- name: Download itest dir
59-
uses: actions/download-artifact@v1
59+
uses: actions/download-artifact@v4
6060
with:
6161
name: dockerfile-image-update-itest
62+
path: dockerfile-image-update-itest
6263
- name: integration test
6364
env:
6465
ITEST_GH_TOKEN: ${{ secrets.ITEST_GH_TOKEN }}
@@ -68,9 +69,10 @@ jobs:
6869
needs: build-test
6970
steps:
7071
- name: Download main project dir
71-
uses: actions/download-artifact@v1
72+
uses: actions/download-artifact@v4
7273
with:
7374
name: dockerfile-image-update
75+
path: dockerfile-image-update
7476
- name: Upload coverage to Codecov
7577
uses: codecov/codecov-action@v1.0.10
7678
with:
@@ -79,25 +81,3 @@ jobs:
7981
# flags: unittests
8082
# yml: ./codecov.yml
8183
fail_ci_if_error: true
82-
codeclimate:
83-
runs-on: ubuntu-latest
84-
needs: build-test
85-
steps:
86-
- name: checkout
87-
uses: actions/checkout@main
88-
with:
89-
ref: ${{ github.ref }}
90-
- name: Download main project dir
91-
uses: actions/download-artifact@v1
92-
with:
93-
name: dockerfile-image-update
94-
- name: Upload coverage to Code Climate
95-
uses: paambaati/codeclimate-action@v2.6.0
96-
env:
97-
CC_TEST_REPORTER_ID: 873529a2ad74a48f14a73b29dd3f392c7da63902534ac0fd224746f32ba77ac5
98-
JACOCO_SOURCE_PATH: "${{github.workspace}}/dockerfile-image-update/src/main/java"
99-
with:
100-
# The report file must be there, otherwise Code Climate won't find it
101-
coverageCommand: echo "already done"
102-
coverageLocations: |
103-
${{github.workspace}}/dockerfile-image-update/target/site/jacoco/jacoco.xml:jacoco

0 commit comments

Comments
 (0)