Skip to content

Commit

Permalink
Merge pull request #1078 from bfenetworks/release/v1.6.0
Browse files Browse the repository at this point in the history
Release/v1.6.0
  • Loading branch information
clarinette9 authored Oct 21, 2022
2 parents 99cabc5 + 50b0b57 commit e22ca37
Show file tree
Hide file tree
Showing 352 changed files with 2,200 additions and 931 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# Must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head of the pull request.
Expand All @@ -50,7 +50,13 @@ jobs:

# Check license header
- name: Check License Header
uses: apache/skywalking-eyes@main
uses: apache/skywalking-eyes/header@v0.4.0

# Setup golang sdk
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.17

# Build
- name: Build
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/code-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2022 The BFE Authors
#
# Licensed 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: Code Lint

on:
pull_request:
branches: [ develop ]
paths-ignore:
- 'docs/**'
- '**/*.md'

jobs:
lint:
name: Code lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: dominikh/staticcheck-action@v1.0.0
with:
version: "2021.1.1"
- run: "go vet ./..."
35 changes: 35 additions & 0 deletions .github/workflows/docs-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2022 The BFE Authors
#
# Licensed 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: Docs Lint

on:
pull_request:
branches: [ develop ]
paths:
- '**/*.md'

jobs:
markdownlint:
name: Markdown
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2.5.1
with:
node-version: '12.x'
- run: npm install -g markdownlint-cli@0.25.0
- run: markdownlint --ignore ./**/testdata/**/*.md '**/*.md'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ output
.*.swo
/**/y.output
/**/*.log
/**/*.log.*
profile.out
coverage.txt
.idea/*
Expand Down
32 changes: 32 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2022 The BFE Authors
#
# Licensed 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.
#
# rules from https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
MD001: false
MD004: false
MD005: false
MD006: false
MD007: false
MD010: false
MD013: false
MD014: false
MD024: false
MD026: false
MD029: false
MD033: false
MD034: false
MD036: false
MD040: false
MD041: false
MD046: false
13 changes: 12 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,20 @@
#
repos:
- repo: git://github.com/dnephin/pre-commit-golang
rev: v0.4.0
rev: v0.5.0
hooks:
- id: go-fmt
- id: go-vet
- id: go-unit-tests
- id: go-build

- repo: git://github.com/Bahjat/pre-commit-golang
rev: c3086eea8af86847dbdff2e46b85a5fe3c9d9656
hooks:
- id: go-static-check

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.31.1
hooks:
- id: markdownlint
- id: markdownlint-fix
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
language: go

go:
- 1.13.x
- 1.17.x

script:
- echo "start to build and test bfe"
Expand Down
Loading

0 comments on commit e22ca37

Please sign in to comment.