Skip to content

Commit

Permalink
feat[Build] Added target to build steps and added integrationtests
Browse files Browse the repository at this point in the history
  • Loading branch information
sidey79 committed Dec 26, 2024
1 parent 038846a commit afba30f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/integrationtest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ runs:
load: true
tags: ${{ steps.meta-runtime.outputs.tags }}
labels: ${{ steps.meta-runtime.outputs.labels }}
target: alexa-fhem
cache-from: |
type=gha,scope=verify_runtime_${{ inputs.PLATTFORM }}
cache-to: type=gha,mode=max,scope=verify_runtime_${{ inputs.PLATTFORM }}
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,25 @@ jobs:
PLATTFORM: linux/amd64
ALEXAFHEM_VERSION: ${{ steps.split_alexafhemV.outputs.result }}

- name: Build for bats with fhem base layer
uses: docker/[email protected]
id: docker_build_bats
with:
context: .
load: true
file: ./Dockerfile
platforms: linux/amd64
push: false
target: alexa-fhem-bats
cache-from: |
type=gha,scope=verify_runtime_linux/amd64
tags: bats-withalexafhem

- uses: Wandalen/[email protected]
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-withalexafhem:latest -T -t .
published_build:
runs-on: ubuntu-latest
needs: test_build
Expand Down Expand Up @@ -134,6 +153,8 @@ jobs:
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
target: alexa-fhem

- name: Install cosign
uses: sigstore/[email protected]

Expand Down

0 comments on commit afba30f

Please sign in to comment.