Repository navigation
102 lines (97 loc) · 3.41 KB
/
Copy pathci.yml
File metadata and controls
102 lines (97 loc) · 3.41 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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: dubbo-admin ci
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
trace-to-metric-contract:
name: Trace to Metric Contract (Collector 0.112.0)
runs-on: ubuntu-latest
if: github.repository == 'apache/dubbo-admin'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install YAML parser
run: python -m pip install PyYAML==6.0.2
- name: Extract the pinned Collector binary
env:
COLLECTOR_IMAGE: otel/opentelemetry-collector-contrib:0.112.0
run: |
container=$(docker create "$COLLECTOR_IMAGE")
trap 'docker rm "$container"' EXIT
docker cp "$container:/otelcol-contrib" "$RUNNER_TEMP/otelcol-contrib"
chmod +x "$RUNNER_TEMP/otelcol-contrib"
- name: Check provisioning and execute release OTTL against fixtures
run: python scripts/verify-trace-metric-collector.py --collector "$RUNNER_TEMP/otelcol-contrib"
license-check:
name: License Check
runs-on: ubuntu-latest
if: github.repository == 'apache/dubbo-admin'
steps:
- uses: actions/checkout@v4
- name: Check License Header
uses: apache/skywalking-eyes/header@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config: .licenserc.yaml
mode: check
CI:
name: CI (${{ matrix.os }} - Go ${{ matrix.go_version }})
runs-on: ${{ matrix.os }}
strategy:
# If you want to matrix build , you can append the following list.
matrix:
go_version:
- "1.24"
- "1.23"
os:
- ubuntu-latest
if: github.repository == 'apache/dubbo-admin'
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: ui-vue3/yarn.lock
- name: Build Frontend (Vue3)
working-directory: ui-vue3
run: |
yarn install --frozen-lockfile
yarn build
- name: Copy Dist Directory
run: cp -r ui-vue3/dist/ app/dubbo-ui/
- name: Setup Go ${{ matrix.go_version }}
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Check Code Format
run: make fmt && git status && [[ -z $(git status -s) ]]
- name: Run Unit Test
run: make test
# TODO(marsevilspirit): add lint
- name: Coverage
# TODO(marsevilspirit): fix coverage
run: bash <(curl -s https://codecov.io/bash)