-
Notifications
You must be signed in to change notification settings - Fork 93
44 lines (37 loc) · 1.05 KB
/
format-native.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
name: format native
on:
push:
branches: [ main ]
pull_request:
merge_group:
workflow_dispatch:
jobs:
check-native-format:
strategy:
fail-fast: false
matrix:
machine: [ windows-2022, ubuntu-20.04, macos-11 ]
runs-on: ${{ matrix.machine }}
steps:
- uses: actions/[email protected]
- name: Install Clang tools
shell: bash
run: ./scripts/download-clang-tools.sh
- name: Format native code
shell: bash
run: ./scripts/format-native.sh
check-native-headers:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.20.1'
- name: Verify all native files have license headers
shell: bash
run: |
go install github.com/google/[email protected]
addlicense -v -y "" -l "apache" -c "The OpenTelemetry Authors" -s=only -ignore **/lib/** src/OpenTelemetry.AutoInstrumentation.Native/
git status
git diff
test -z "$(git status --porcelain)"