Skip to content

Commit

Permalink
Merge pull request #4 from candlepin/ptoscano/ci-updates
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
jirihnidek authored Apr 11, 2023
2 parents 1ccb22c + 9fce519 commit 1c1964f
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: CI

on:
pull_request:
push:
workflow_dispatch:
schedule:
# at 8:00 every 1st of the month
- cron: 0 8 1 * *

jobs:
test:
Expand All @@ -13,6 +15,7 @@ jobs:
matrix:
container:
- "fedora:latest"
- "fedora:rawhide"
- "quay.io/centos/centos:stream8"
- "quay.io/centos/centos:stream9"
container:
Expand Down Expand Up @@ -42,26 +45,21 @@ jobs:
if: ${{ endsWith(matrix.container, 'stream9') }}
run: |
dnf config-manager --set-enabled crb
dnf install -y \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
dnf install -y epel-release epel-next-release
- name: Install tito (packages)
if: "${{ !endsWith(matrix.container, 'stream9') }}"
- name: Install tito
run: |
dnf --setopt install_weak_deps=False install -y \
tito
- name: Install tito (pip)
if: ${{ endsWith(matrix.container, 'stream9') }}
run: |
dnf --setopt install_weak_deps=False install -y \
python3-pip \
python3-setuptools
pip install https://github.com/rpm-software-management/tito/archive/refs/tags/tito-0.6.20-1.tar.gz
- uses: actions/checkout@v3

# This step is required so Tito can properly read git history
# See https://github.com/actions/checkout/issues/766
- name: Trust git repository path
run: |
git config --global --add safe.directory '*'
- name: Install RPM build dependencies
run: |
dnf --setopt install_weak_deps=False builddep -y \
Expand Down

0 comments on commit 1c1964f

Please sign in to comment.