Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Update GitHub actions to use node 16 and Ubuntu to latest #686

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ on:
jobs:

coverage-report:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
-
name: "Checkout Che Dashboard source code"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: "Use Node.js"
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
-
name: "Install dependencies"
run: yarn
Expand All @@ -40,7 +40,7 @@ jobs:
run: yarn test:coverage
-
name: "Build Codecov report"
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
files: ./packages/dashboard-frontend/coverage/lcov.info,./packages/dashboard-backend/coverage/lcov.info,./packages/common/coverage/lcov.info
flags: unittests
18 changes: 9 additions & 9 deletions .github/workflows/next-build-multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
jobs:

build-images:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -34,30 +34,30 @@ jobs:
steps:
-
name: "Checkout Che Dashboard source code"
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: "Set up QEMU"
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
-
name: "Set up Docker Buildx ${{ matrix.arch }}"
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: "Docker quay.io Login"
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
-
name: "Docker docker.io Login"
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: "Build and push ${{ matrix.arch }}"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
cache-from: type=registry,ref=${{ env.CACHE_IMAGE_FULL }}
cache-to: type=registry,ref=${{ env.CACHE_IMAGE_FULL }},mode=max
Expand All @@ -75,11 +75,11 @@ jobs:
create-manifest:
if: always()
needs: build-images
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
-
name: "Docker quay.io Login"
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ env:
jobs:

dash-licenses:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: ${{ github.base_ref == 'main' }}
steps:
-
name: "Checkout Che Dashboard source code"
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: "Use Node 16"
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16
-
Expand All @@ -41,17 +41,17 @@ jobs:
run: yarn license:check

build-and-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
-
name: "Checkout Che Dashboard source code"
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: "Use Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
-
Expand All @@ -69,7 +69,7 @@ jobs:

docker-build:
needs: build-and-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.default == false }}
strategy:
fail-fast: false
Expand All @@ -84,34 +84,34 @@ jobs:
steps:
-
name: "Checkout Che Dashboard source code"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ${{ env.DIR_DASHBOARD }}
ref: ${{ github.event.pull_request.head.sha }}
-
name: "Set up QEMU"
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
-
name: "Set up Docker Buildx ${{ matrix.platform }}"
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: "Cache Docker layers"
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
-
name: "Docker quay.io Login"
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
-
name: "Build and push ${{ matrix.platform }}"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
Expand All @@ -122,7 +122,7 @@ jobs:
tags: ${{ env.ORGANIZATION }}/che-dashboard:${{ env.IMAGE_VERSION }}
-
name: "Comment with image name"
uses: actions/github-script@v3
uses: actions/github-script@v6
if: ${{ matrix.default == true }}
with:
script: |
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
jobs:

build-images:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -30,23 +30,23 @@ jobs:
steps:
-
name: "Checkout Che Dashboard source code"
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: "Set up QEMU"
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
-
name: "Set up Docker Buildx ${{ matrix.arch }}"
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: "Docker quay.io Login"
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
-
name: "Build and push ${{ matrix.arch }}"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./build/dockerfiles/Dockerfile
Expand All @@ -61,11 +61,11 @@ jobs:

create-manifest:
needs: build-images
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
-
name: "Docker quay.io Login"
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
Expand Down Expand Up @@ -99,14 +99,14 @@ jobs:

tag-release:
needs: create-manifest
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
-
name: "Checkout Che Dashboard source code"
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: "Setup Node"
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "14"
-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/try-in-web-ide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
id: try-in-web-ide
Expand Down