-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a138439
commit 769938a
Showing
10 changed files
with
138 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
########################################### | ||
# These are the rules used for # | ||
# linting all the yaml files in the stack # | ||
# NOTE: # | ||
# You can disable line with: # | ||
# # yamllint disable-line # | ||
########################################### | ||
rules: | ||
braces: | ||
level: warning | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 0 | ||
min-spaces-inside-empty: 1 | ||
max-spaces-inside-empty: 5 | ||
brackets: | ||
level: warning | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 0 | ||
min-spaces-inside-empty: 1 | ||
max-spaces-inside-empty: 5 | ||
colons: | ||
level: warning | ||
max-spaces-before: 0 | ||
max-spaces-after: 1 | ||
commas: | ||
level: warning | ||
max-spaces-before: 0 | ||
min-spaces-after: 1 | ||
max-spaces-after: 1 | ||
comments: disable | ||
comments-indentation: disable | ||
document-end: disable | ||
document-start: | ||
level: warning | ||
present: true | ||
empty-lines: | ||
level: warning | ||
max: 2 | ||
max-start: 0 | ||
max-end: 0 | ||
hyphens: | ||
level: warning | ||
max-spaces-after: 1 | ||
indentation: | ||
level: warning | ||
spaces: consistent | ||
indent-sequences: true | ||
check-multi-line-strings: false | ||
key-duplicates: enable | ||
line-length: | ||
level: warning | ||
max: 80 | ||
allow-non-breakable-words: true | ||
allow-non-breakable-inline-mappings: true | ||
new-line-at-end-of-file: disable | ||
new-lines: | ||
type: unix | ||
trailing-spaces: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
name: Build | ||
--- | ||
# Automatic building in CI | ||
|
||
on: [push, pull_request] | ||
name: "Matrix Build" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [main, develop] | ||
|
||
jobs: | ||
build: | ||
|
@@ -43,13 +49,14 @@ jobs: | |
- name: Test Sample-Server | ||
run: | | ||
cd build/SampleServer-build/ | ||
ctest --output-on-failure ${{env.ARG_CTEST}} | ||
ctest --output-on-failure ${{ env.ARG_CTEST }} | ||
docker: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
# Check if this is not a pull request and GITHUB_TOKEN is set | ||
# As all env variables are strings, you need to compaire against "== 'true'" (not "== true") | ||
# Check if this is not a pull request andGITHUB_TOKEN is set | ||
# As all env variables are strings, you need to compare | ||
# against "== 'true'" (not "== true") | ||
IS_NOT_PR: "${{ !github.head_ref && true }}" | ||
steps: | ||
- name: Checkout Sample-Server | ||
|
@@ -62,7 +69,7 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: PrepareReg Names | ||
run: | | ||
run: | | ||
echo IMAGE_REPOSITORY="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV" | ||
echo IMAGE_TAG="$(echo "${{ github.ref }}" | tr '[:upper:]' '[:lower:]' | awk '{sub(/([^\/]*\/){2}/,""); gsub(/\/|_/, "-")}1')" >> "$GITHUB_ENV" | ||
echo IS_NOT_PR="${{ env.IS_NOT_PR }})" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ name: Lint Code Base | |
############################# | ||
on: | ||
push: | ||
branches-ignore: [] | ||
pull_request: | ||
branches: [main, develop] | ||
|
||
|
@@ -28,7 +27,7 @@ jobs: | |
# Name the Job | ||
name: Lint Code Base (super-linter) | ||
# Set the agent to run on | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
|
||
################## | ||
# Load all steps # | ||
|
@@ -40,7 +39,8 @@ jobs: | |
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
# Full git history is needed to get a proper list of changed files within `super-linter` | ||
# Full git history is needed to get a proper list | ||
# of changed files within `super-linter` | ||
fetch-depth: 0 | ||
|
||
################################ | ||
|
@@ -57,11 +57,11 @@ jobs: | |
# CMake Format | ||
cmake-format-linter: | ||
name: Lint Code Base (cmake-format-lint) | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Format CMake files | ||
id: cmake-format | ||
uses: PuneetMatharu/[email protected] | ||
with: | ||
args: --config-files cmake-format.yaml | ||
- uses: actions/checkout@v3 | ||
- name: Format CMake files | ||
id: cmake-format | ||
uses: PuneetMatharu/[email protected] | ||
with: | ||
args: --config-files cmake-format.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters