Skip to content

Commit ae8047c

Browse files
Add package CI workflow (#274)
1 parent 5a9a746 commit ae8047c

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/packages.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test package installation
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "5 4 * * 0" # every sunday at 04:05
7+
8+
jobs:
9+
test_packages:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Setup BATS
13+
uses: mig4/setup-bats@v1
14+
with:
15+
bats-version: 1.9.0
16+
17+
- name: Check out code
18+
uses: actions/checkout@v4
19+
20+
- name: Run test
21+
run: make -C packages test

packages/test-install-on-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -eu
44

55
docker_image="${1}"
66

7-
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}"
7+
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 commit comments

Comments
 (0)