forked from envoyproxy/envoy-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (82 loc) · 2.25 KB
/
format.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: format
on:
push:
branches:
- main
pull_request:
jobs:
formatall:
name: format_all
runs-on: ubuntu-latest
timeout-minutes: 45
container:
image: envoyproxy/envoy-build-ubuntu:0a02a76af5951bf7f4c7029c0ea6d29d96c0f682
env:
CLANG_FORMAT: /opt/llvm/bin/clang-format
BUILDIFIER_BIN: /usr/local/bin/buildifier
BUILDOZER_BIN: /usr/local/bin/buildozer
ENVOY_BAZEL_PREFIX: "@envoy"
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: 'Run formatters'
run: ./tools/check_format.sh
precommit:
name: precommit
runs-on: macos-12
timeout-minutes: 45
steps:
- uses: actions/checkout@v1
- name: 'Install precommit'
run: brew install pre-commit
- name: 'Run precommit'
run: pre-commit run --all-files
swiftlint:
name: swift_lint
runs-on: ubuntu-latest
timeout-minutes: 5
container:
image: ghcr.io/realm/swiftlint:0.47.1
steps:
- uses: actions/checkout@v1
- name: 'Run Swift Lint (SwiftLint)'
run: swiftlint lint --strict
drstring:
name: drstring
runs-on: macos-12
timeout-minutes: 5
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: 'Run DrString'
env:
DEVELOPER_DIR: /Applications/Xcode_13.4.app
run: ./bazelw run @DrString//:drstring check
kotlinlint:
name: kotlin_lint
runs-on: macos-12
timeout-minutes: 45
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-java@v1
with:
java-version: '8'
java-package: jdk
architecture: x64
- run: ./ci/mac_ci_setup.sh
name: 'Install dependencies'
- name: 'Run Kotlin Lint (Detekt)'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./bazelw build \
--config=remote-ci-macos --remote_header="Authorization=Bearer $GITHUB_TOKEN" \
//library/kotlin/io/envoyproxy/envoymobile:envoy_lib_lint \
//examples/kotlin/hello_world:hello_envoy_kt_lint
- name: 'Run Kotlin Formatter (ktlint)'
run: |
./bazelw build kotlin_format