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 #233

Merged
merged 2 commits into from
Dec 21, 2022
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ name: Code Coverage Report
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Submit code coverage results
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependencies-md-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ on: pull_request
jobs:
dependencies-md-check:
name: DEPENDENCIES.md file validation
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v1
uses: actions/checkout@v3
- name: DEPENDENCIES.md file validator.
uses: che-incubator/[email protected]
env:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/gh_actions_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ name: Docker Build PR
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout che-machine-exec 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
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Check docker build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: build/dockerfiles/Dockerfile
platforms: linux/amd64,linux/ppc64le,linux/arm64
push: false
tags: quay.io/eclipse/che-machine-exec:pr-check

travis-build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
continue-on-error: true
steps:
- name: Trigger build on Travis CI
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh_actions_unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ name: Unit Tests
on: pull_request
jobs:
unit-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout che-machine-exec source code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build che-machine-exec binary
run: CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags '-w -s' -a -installsuffix cgo -o che-machine-exec .
- name: Run unit tests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ on: [pull_request]
jobs:
run:
name: License
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.15
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Check Eclipse license headers
run: |
go get -u github.com/che-incubator/check-license-header@379ba18fdb906d341ae451ea155cc34f1c4b4f1a
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/next-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ on:
branches: [ main ]
jobs:
build-push:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout che-machine-exec 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
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Login to quay.io
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
Expand All @@ -38,7 +38,7 @@ jobs:
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Build and push both short SHA tag and next tag
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: build/dockerfiles/Dockerfile
platforms: linux/amd64,linux/ppc64le,linux/arm64
Expand All @@ -48,7 +48,7 @@ jobs:
quay.io/eclipse/che-machine-exec:${{ steps.vars.outputs.sha_short }}

travis-build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
continue-on-error: true
steps:
- name: Trigger build on Travis CI
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ on:
jobs:
build:
name: Create Release
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check existing tags
Expand All @@ -53,21 +53,21 @@ jobs:
echo "[INFO] No existing tags detected for $VERSION"
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 QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Create Release
run: |
git config --global user.name "Mykhailo Kuznietsov"
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 @@ -18,7 +18,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
Expand Down