-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (32 loc) · 1.12 KB
/
ubuntu_lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"