diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 05a8b1cd..6f5eabe6 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -2,7 +2,8 @@ name: Test package installation on: workflow_dispatch: - schedule: "5 4 * * 0" # every sunday at 04:05 + schedule: + - cron: "5 4 * * 0" # every sunday at 04:05 push: concurrency: @@ -10,8 +11,16 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} jobs: - pcre: + test_packages: runs-on: ubuntu-latest steps: + - name: Setup BATS + uses: mig4/setup-bats@v1 + with: + bats-version: 1.9.0 + + - name: Check out code + uses: actions/checkout@v4 + - name: Run test run: make -C packages test diff --git a/packages/test-install-on-docker.sh b/packages/test-install-on-docker.sh index 692939c2..8d60d603 100755 --- a/packages/test-install-on-docker.sh +++ b/packages/test-install-on-docker.sh @@ -5,4 +5,4 @@ set -eu docker_image="${1}" docker pull "$docker_image" -docker run -e OBS_PROJECT="${OBS_PROJECT:-}" -e CRYSTAL_VERSION="${CRYSTAL_VERSION:-}" --rm -it -v $(pwd)/scripts:/scripts -v $(pwd)/support:/support $docker_image /bin/sh -c "/support/test-install.sh ${@:2}" +docker run -e OBS_PROJECT="${OBS_PROJECT:-}" -e CRYSTAL_VERSION="${CRYSTAL_VERSION:-}" --rm -v $(pwd)/scripts:/scripts -v $(pwd)/support:/support $docker_image /bin/sh -c "/support/test-install.sh ${@:2}"