diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0f1526d..de25864 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,36 +8,21 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '^1.21.3' - name: Set up Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: '8' distribution: 'adopt' - - name: Cache downloaded Go dependencies - uses: actions/cache@v3 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - name: Cache downloaded Java dependencies - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: 'maven' - name: Build run: mvn --batch-mode clean verify - name: Upload the artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "cli" path: target/*.zip