-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docs and examples for V4 (#232)
- added some config examples - added deprecated warnings - removes unused scripts and files
- Loading branch information
Showing
18 changed files
with
220 additions
and
599 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
src/FHEM/trunk | ||
.github | ||
.vscode | ||
.vscode | ||
.cache |
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 |
---|---|---|
|
@@ -304,13 +304,13 @@ jobs: | |
name: Run bats unit and integration tests in bidge network mode | ||
with: | ||
attempt_limit: 3 | ||
command: timeout 9m docker run --rm -e GITHUB_RUN_ID=$GITHUB_RUN_ID -v "${PWD}/src/tests/bats:/code" bats-withfhem:latest -T -t . --filter-tags '!hostMode' | ||
command: timeout 9m docker run --rm -e GITHUB_RUN_ID=$GITHUB_RUN_ID -v "${PWD}/src/tests/bats:/code" bats-withfhem:latest -T -t . --filter-tags '!hostMode,!extendedOnly' | ||
|
||
- uses: Wandalen/[email protected] | ||
name: Run bats unit and integration tests in host network mode | ||
with: | ||
attempt_limit: 3 | ||
command: timeout 1m docker run --rm --net=host -e GITHUB_RUN_ID=$GITHUB_RUN_ID -v "${PWD}/src/tests/bats:/code" bats-withfhem:latest -T -t . --filter-tags 'hostMode' | ||
command: timeout 1m docker run --rm --net=host -e GITHUB_RUN_ID=$GITHUB_RUN_ID -v "${PWD}/src/tests/bats:/code" bats-withfhem:latest -T -t . --filter-tags 'hostMode,!extendedOnly' | ||
|
||
- name: Build for test fhem, python and nodejs layer added for amd64 | ||
uses: docker/build-push-action@v5 | ||
|
@@ -353,6 +353,35 @@ jobs: | |
docker exec ${CONTAINER} /bin/bash -c "prove --exec 'perl fhem.pl -t' -I FHEM --recurse /opt/fhem/t/FHEM/" || true | ||
docker container rm $CONTAINER --force --volumes | ||
- name: Build for bats with fhem extended layer | ||
uses: docker/build-push-action@v5 | ||
id: docker_build_bats_extended | ||
with: | ||
context: . | ||
load: true | ||
file: ./Dockerfile${{ matrix.dockerfile }} | ||
platforms: linux/amd64 | ||
push: false | ||
target: with-fhem-bats-extended-python-nodejs | ||
cache-from: | | ||
type=gha,scope=fhem_linux/amd64-${{ matrix.dockerfile }} | ||
type=gha,mode=max,scope=full_linux/amd64-${{ matrix.dockerfile }} | ||
tags: bats-withfhem-extended | ||
labels: ${{ steps.meta.outputs.labels }} | ||
build-args: | | ||
BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} | ||
IMAGE_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} | ||
IMAGE_VCS_REF=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} | ||
L_USAGE=${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/README.md | ||
L_VCS_URL=${{ github.server_url }}/${{ github.repository }}/ | ||
L_AUTHORS=${{ github.server_url }}/${{ github.repository }}/graphs/contributors | ||
- uses: Wandalen/[email protected] | ||
name: Run bats unit and integration tests in host network mode | ||
with: | ||
attempt_limit: 3 | ||
command: timeout 1m docker run --rm -e GITHUB_RUN_ID=$GITHUB_RUN_ID -v "${PWD}/src/tests/bats:/code" bats-withfhem-extended:latest -T -t . --filter-tags 'extendedOnly' | ||
|
||
published_build: | ||
runs-on: ubuntu-latest | ||
needs: [test_build, cpan_build] | ||
|
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
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
Oops, something went wrong.