Skip to content

Commit

Permalink
fixup! Add package CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Nov 13, 2023
1 parent 4e47aa3 commit c9e1df4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@ 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:
group: ${{ github.workflow }}-${{ github.ref }}
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
2 changes: 1 addition & 1 deletion packages/test-install-on-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit c9e1df4

Please sign in to comment.