From 7d6f5f5af57df47caf1da1129d257c10ec97a209 Mon Sep 17 00:00:00 2001 From: Samantha Dawley Date: Mon, 19 Dec 2022 09:36:59 -0800 Subject: [PATCH] chore: Update GitHub actions to use Node 16 and Ubuntu to latest (#400) * Update GitHub actions to use Node 16 and Ubuntu to latest Signed-off-by: sdawley * Switching Ubuntu to a set version (22.04). Changed release-action to v1 so it gets updates. Signed-off-by: sdawley --- .github/workflows/build-pr-check.yml | 6 +++--- .github/workflows/che-properties-docs-update.yml | 2 +- .github/workflows/next-build.yml | 10 +++++----- .github/workflows/release.yml | 16 ++++++++-------- .github/workflows/sonar.yaml | 8 ++++---- .github/workflows/try-in-web-ide.yaml | 2 +- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-pr-check.yml b/.github/workflows/build-pr-check.yml index 8952116b67..ee1350ed8c 100644 --- a/.github/workflows/build-pr-check.yml +++ b/.github/workflows/build-pr-check.yml @@ -13,15 +13,15 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Check all properties have description run: ./check_properties_description.sh - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '11.0.14' diff --git a/.github/workflows/che-properties-docs-update.yml b/.github/workflows/che-properties-docs-update.yml index b8df5e682e..e56fed4afc 100644 --- a/.github/workflows/che-properties-docs-update.yml +++ b/.github/workflows/che-properties-docs-update.yml @@ -21,7 +21,7 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Execute workflow in Che Docs id: build diff --git a/.github/workflows/next-build.yml b/.github/workflows/next-build.yml index d4b8155627..903c2fe675 100644 --- a/.github/workflows/next-build.yml +++ b/.github/workflows/next-build.yml @@ -17,25 +17,25 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '11.0.14' cache: 'maven' - name: Login to docker.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} registry: docker.io - name: Login to quay.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 404746bf98..832d5baa47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,13 +43,13 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: che-server fetch-depth: 0 - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 if: ${{ github.event.inputs.releaseParent == 'true' }} with: repository: eclipse/che-parent @@ -63,23 +63,23 @@ jobs: exit 1 fi - name: Login to docker.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} registry: docker.io - name: Login to quay.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} registry: quay.io - name: Set up Python 3.6 - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: 3.6 - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '11.0.14' @@ -132,7 +132,7 @@ jobs: ./che-server/make-release.sh - name: Create GH Release id: create_release - uses: ncipollo/release-action@v1.8.0 + uses: ncipollo/release-action@v1 env: GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} with: diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index b332481a5d..d94d8159b5 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -6,19 +6,19 @@ on: jobs: build: name: Sonar - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '11.0.14' cache: 'maven' - name: Cache SonarCloud packages - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar diff --git a/.github/workflows/try-in-web-ide.yaml b/.github/workflows/try-in-web-ide.yaml index cc621dc7ec..cf92357946 100644 --- a/.github/workflows/try-in-web-ide.yaml +++ b/.github/workflows/try-in-web-ide.yaml @@ -7,7 +7,7 @@ on: jobs: add-link: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Web IDE Pull Request Check uses: redhat-actions/try-in-web-ide@v1