Skip to content

[CI/CD]add docker dev builder #252

[CI/CD]add docker dev builder

[CI/CD]add docker dev builder #252

Workflow file for this run

name: ubuntu-lint
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Ubuntu-Lint:
timeout-minutes: 60
runs-on: ubuntu-20.04
container: docker.io/library/ubuntu:20.04
steps:
# More detail see https://github.com/actions/checkout/issues/335.
- name: Init Before Check
run: |
apt-get update
apt-get install -yq git
- name: Checkout
uses: actions/checkout@v2
- name: Init Env
run: |
apt-get update && DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get install -y tzdata
apt-get install -yq software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt-get install -yq openjdk-8-jdk wget gcc g++ python3.8 zlib1g-dev zip
apt-get install -yq python3-pip maven
pip install --upgrade click==8.0.2
sh scripts/install-bazel.sh
- name: Prepare format tools
run: sh -c "bash scripts/prepare-format-tools.sh"
- name: Lint and Check
run: sh -c "bash scripts/format.sh" && sh -c "bash scripts/check-git-format-output.sh"