Skip to content

Commit

Permalink
Update buildAndTest.yml
Browse files Browse the repository at this point in the history
Update actions versions to v4 / v3 to avoid deprecation failures
  • Loading branch information
NiklasRentzCAU committed Oct 2, 2024
1 parent 85cedde commit b361e86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
# this provides some extremly helpful insight into the meta data of the current execution, see also https://docs.github.com/en/actions/learn-github-actions/contexts#github-context and https://stackoverflow.com/questions/70104600/complete-list-of-github-actions-contexts
# - name: Dump GitHub context
# run: echo '${{ toJSON(github) }}'
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: nelonoel/[email protected]
- name: Set up JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt
- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: .m2
key: ${{ runner.os }}-m2-${{ hashFiles('.github/workflows/**/*.*', '**/pom.xml', '**/META-INF/MANIFEST.MF', 'build/de.cau.cs.kieler.klighd.targetplatform/de.cau.cs.kieler.klighd.targetplatform.target') }}
Expand All @@ -43,23 +43,23 @@ jobs:
#print the folder structure up to depth 2 on the console as we have no other option of getting an inside into workspace folder
find . -maxdepth 2
- name: Archive P2 Repository
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: KLighD P2 Repository
path: build/de.cau.cs.kieler.klighd.repository/target/repository/**/*
retention-days: 14
if-no-files-found: error
- name: Archive MVN Repository
if: ${{ !contains(github.ref, 'releases-') }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: KLighD MVN Repository
path: klighd-snapshots/**/*
retention-days: 14
if-no-files-found: error
- name: Archive MVN Release Repository
if: ${{ contains(github.ref, 'releases-') }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: KLighD MVN Repository
path: klighd/**/*
Expand Down

0 comments on commit b361e86

Please sign in to comment.