Skip to content

Commit d6ddd06

Browse files
author
Jason Young
committed
Add products/ and ci actions
1 parent 253d2a0 commit d6ddd06

File tree

457 files changed

+149031
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

457 files changed

+149031
-132
lines changed

.github/workflows/distill/test.yml renamed to .github/workflows/distill/ci.yml

+18-11
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,24 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
name: Test Suite
18-
19-
# on:
20-
# pull_request:
21-
# branches:
22-
# - dev
23-
# - master
24-
# push:
25-
# branches:
26-
# - dev
27-
# - master
17+
name: CI test suite
18+
run-name: ${{ github.actor }} running CI test suite
19+
20+
on:
21+
push:
22+
branches:
23+
- master
24+
paths:
25+
- products/distill/**
26+
pull_request:
27+
branches:
28+
- master
29+
paths:
30+
- products/distill/**
31+
32+
defaults:
33+
run:
34+
working-directory: ./products/distill
2835

2936
jobs:
3037
test:

.github/workflows/distill/main.yml

-50
This file was deleted.

.github/workflows/distill/rat.yml

-56
This file was deleted.

.github/workflows/license.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
name: License check
19+
run-name: ${{ github.actor }} running license check
20+
on:
21+
push:
22+
branches:
23+
- master
24+
pull_request:
25+
branches:
26+
- master
27+
jobs:
28+
license:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Check license header
32+
uses: apache/skywalking-eyes/[email protected]
33+
with:
34+
log: debug # optional: set the log level. The default value is `info`.
35+
config: .licenserc.yaml # optional: set the config file. The default value is `.licenserc.yaml`.
36+
mode: check # optional: Which mode License-Eye should be run in. Choices are `check` or `fix`. The default value is `check`.

.github/workflows/userale/node.js.yml renamed to .github/workflows/userale/ci.yml

+14-15
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,28 @@
1515
# limitations under the License.
1616
#
1717

18-
19-
2018
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2119
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
2220

23-
name: Node.js CI
24-
run-name: ${{ github.actor }} running CI suite
21+
name: CI test suite
22+
run-name: ${{ github.actor }} running CI test suite
23+
2524
# on:
2625
# push:
2726
# branches:
2827
# - master
29-
# - test
28+
# paths:
29+
# - products/userale/**
3030
# pull_request:
3131
# branches:
3232
# - master
33-
# - test
33+
# paths:
34+
# - products/userale/**
35+
36+
defaults:
37+
run:
38+
working-directory: ./products/userale
39+
3440
jobs:
3541
pre-build:
3642
runs-on: ubuntu-latest
@@ -54,14 +60,7 @@ jobs:
5460
- name: Lint
5561
run: npm run lint
5662

57-
- name: Check license header
58-
uses: apache/skywalking-eyes/header@main
59-
with:
60-
log: info # optional: set the log level. The default value is `info`.
61-
config: .licenserc.yaml # optional: set the config file. The default value is `.licenserc.yaml`.
62-
mode: check # optional: Which mode License-Eye should be run in. Choices are `check` or `fix`. The default value is `check`.
63-
64-
build:
63+
test:
6564
runs-on: ubuntu-latest
6665
strategy:
6766
matrix:
@@ -77,7 +76,7 @@ jobs:
7776
node-version: ${{ matrix.node-version }}
7877

7978
- name: Install dependencies
80-
run: npm ci # clean install
79+
run: npm ci
8180

8281
- name: Install Playwright Browsers
8382
run: |

.licenserc.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
header:
19+
license:
20+
spdx-id: Apache-2.0
21+
copyright-owner: Apache Software Foundation
22+
23+
paths-ignore:
24+
- 'dist'
25+
- 'licenses'
26+
- 'LICENSE'
27+
- 'NOTICE'
28+
- 'logs'
29+
- '**/*.json'
30+
- '**/*.mjs'
31+
- 'KEYS'
32+
- '**/*.js.map'
33+
34+
comment: on-failure
35+
36+
dependency:
37+
files:
38+
- products/userale/package.json
39+
- products/distill/pyproject.toml

products/distill/.dockerignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
*.rst
18+
*.in
19+
LICENSE
20+
NOTICE
21+
.env
22+
docs
23+
doc_requirements.txt
24+
docker
25+
docker-compose.yml

products/distill/.flake8

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
[flake8]
18+
exclude =
19+
venv
20+
.venv
21+
__pycache__
22+
.pytest_cache
23+
docs
24+
examples
25+
Dashboard
26+
# Recommend matching the black line length (default 88),
27+
# rather than using the flake8 default of 79:
28+
max-line-length = 88
29+
extend-ignore =
30+
# See https://github.com/PyCQA/pycodestyle/issues/373
31+
E203,

0 commit comments

Comments
 (0)