Skip to content

Update plugin errorprone to v4 (#15) #35

Update plugin errorprone to v4 (#15)

Update plugin errorprone to v4 (#15) #35

Workflow file for this run

# Copyright (C) 2020 Dremio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI build
on:
push:
branches:
- main
pull_request:
types: [labeled, opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
code-checks:
name: CI
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup docker.io mirror
run: |
cat > docker-io-mirror.conf <<!
[[registry]]
# In Nov. 2020, Docker rate-limits image pulling. To avoid hitting these
# limits while testing, always use the google mirror for qualified and
# unqualified 'docker.io' images.
# Ref: https://cloud.google.com/container-registry/docs/pulling-cached-images
prefix="docker.io"
location="mirror.gcr.io"
!
sudo mv docker-io-mirror.conf /etc/containers/registries.conf.d/
echo "::group::Added docker.io mirror"
cat /etc/containers/registries.conf.d/docker-io-mirror.conf
echo "::endgroup::"
echo "::group::Restarting Docker"
echo "ps auxww | grep docker before restart"
sudo ps auxww | grep docker
echo ""
sudo service docker restart
echo ""
echo "ps auxww | grep docker after restart"
sudo ps auxww | grep docker
echo "::endgroup::"
echo "::group::docker info"
docker info
echo "::endgroup::"
- name: Set up JDK
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4
with:
distribution: 'temurin'
java-version: 21
- name: Setup testcontainers.properties
run: |
cat > ~/.testcontainers.properties <<!
# Disable startup checks - speeds up test execution by a few seconds.
# See https://www.testcontainers.org/features/configuration/#disabling-the-startup-checks
checks.disable=true
!
- name: Gradle / Setup
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
validate-wrappers: false
- name: Gradle check
run: ./gradlew check --continue