Skip to content

Commit

Permalink
Add package CI workflow (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Jan 17, 2024
1 parent 5a9a746 commit ae8047c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test package installation

on:
workflow_dispatch:
schedule:
- cron: "5 4 * * 0" # every sunday at 04:05

jobs:
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
2 changes: 1 addition & 1 deletion packages/test-install-on-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -eu

docker_image="${1}"

docker run --pull=always -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 --pull=always -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}"

0 comments on commit ae8047c

Please sign in to comment.