diff --git a/.github/workflows/clang.yml b/.github/workflows/clang.yml new file mode 100644 index 000000000..9b1bdc0b9 --- /dev/null +++ b/.github/workflows/clang.yml @@ -0,0 +1,27 @@ +name: clang + +on: + push: + branches: [ master ] + +jobs: + clang: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - uses: DoozyX/clang-format-lint-action@v0.10 + with: + style: file + source: 'source plugins' + clangFormatVersion: 11 + inplace: True + - uses: EndBug/add-and-commit@v9 + with: + author_name: Clang Robot + author_email: clang-robot@the-starport.net + message: 'clang-format changes' + fetch: 'false' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index cc019db3f..d28ea17c9 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,7 +1,9 @@ name: docs + on: push: branches: [ master ] + jobs: deploy: runs-on: ubuntu-20.04 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08e782851..20c799066 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,30 +1,11 @@ +name: build + on: push: branches: [ master ] -name: build - jobs: - format: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - submodules: true - - uses: DoozyX/clang-format-lint-action@v0.10 - with: - style: file - source: 'source plugins' - clangFormatVersion: 11 - inplace: True - - uses: EndBug/add-and-commit@v7 - with: - author_name: Clang Robot - author_email: clang-robot@the-starport.net - message: 'clang-format changes' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build: + deploy: runs-on: windows-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/main.yml b/.github/workflows/sonar.yml similarity index 96% rename from .github/workflows/main.yml rename to .github/workflows/sonar.yml index f48c9a549..d9e207df4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/sonar.yml @@ -1,9 +1,9 @@ -# This is a basic workflow to help you get started with Actions +# This runs SonarCloud to detect code issues. -name: CI +name: SonarCloud -on: - pull_request: +on: + push: branches: [ master ] jobs: diff --git a/sonar-project.properties b/sonar-project.properties index e729e830a..e65944fce 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -7,7 +7,7 @@ sonar.projectVersion=4.0 # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. sonar.sources=. -sonar.exclusions = vcpkg/**, vcpkg_installed/**, FLHookSDK/** +sonar.exclusions = vcpkg/**, vcpkg_installed/**, FLHookSDK/**, include/ext/**, include/SQLiteCpp/** # Encoding of the source code. Default is default system encoding sonar.sourceEncoding=UTF-8 \ No newline at end of file