-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jiuka/cmk23
Checkmk 2.3.0 Support
- Loading branch information
Showing
24 changed files
with
523 additions
and
438 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
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 was deleted.
Oops, something went wrong.
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 @@ | ||
buy_me_a_coffee: jiuka |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
name: pytest | ||
|
||
on: | ||
push: [] | ||
push: | ||
paths: | ||
- '**.py' | ||
- .github/workflows/pytest.yml | ||
|
||
jobs: | ||
pytest: | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: checkmk/check-mk-raw:2.2.0-latest | ||
|
||
env: | ||
OMD_ROOT: /omd/sites/cmk | ||
OMD_SITE: cmk | ||
CMK_SITE_ID: cmk | ||
WORKSPACE: ${{ github.workspace }} | ||
image: checkmk/check-mk-raw:2.3.0-latest | ||
|
||
steps: | ||
- name: Initialize Checkmk Site | ||
run: /docker-entrypoint.sh /bin/true | ||
- uses: actions/checkout@v3 | ||
- name: Setup links | ||
run: ./.devcontainer/symlink.sh | ||
- name: Install pytest | ||
run: su -l -c "REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt pip3 install -r $GITHUB_WORKSPACE/.devcontainer/requirements.txt" cmk | ||
- name: Update GITHUB_PATH | ||
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH | ||
- name: Run pytest | ||
run: python3 -m pytest | ||
- name: Initialize Checkmk Site | ||
run: /docker-entrypoint.sh /bin/true | ||
- uses: actions/checkout@v4 | ||
- name: Parse Package File | ||
run: | | ||
NAME=$(python3 -c 'print(eval(open("package").read())["name"])') | ||
VERSION=$(python3 -c 'print(eval(open("package").read())["version"])') | ||
echo "CMKPKG_NAME=$NAME" >> "$GITHUB_ENV" | ||
echo "CMKPKG_VERSION=$VERSION" >> "$GITHUB_ENV" | ||
- name: Install Plugin | ||
run: | | ||
rsync -aC --chown=cmk:cmk $GITHUB_WORKSPACE/ /omd/sites/cmk/local/lib/python3/cmk_addons/plugins/$CMKPKG_NAME/ | ||
- name: Install pytest | ||
run: su -l -c "REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt pip3 install -r $GITHUB_WORKSPACE/.devcontainer/requirements.txt" cmk | ||
- name: Run pytest | ||
run: su -l -c "python3 -m pytest /omd/sites/cmk/local/lib/python3/cmk_addons/plugins/$CMKPKG_NAME/" cmk |
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
Oops, something went wrong.