Skip to content

Commit

Permalink
update yum install test (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwu-stripe authored Jul 5, 2024
1 parent 8b81e58 commit e2df075
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/install-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
on:
workflow_dispatch: {}
schedule:
- cron: '0 * * * *' # Every hour
push:
Expand Down Expand Up @@ -28,12 +29,19 @@ jobs:
- run: bash scripts/install-test.sh apt
yum:
runs-on: ubuntu-latest
container: ubuntu:18.04
container: fedora:latest
steps:
- run: |
mkdir /etc/yum.repos.d
echo "[Stripe]\nname=stripe\nbaseurl=https://packages.stripe.dev/stripe-cli-rpm-local/\nenabled=1\ngpgcheck=0" >> /etc/yum.repos.d/stripe.repo
- uses: actions/checkout@v3 # v4 does not support ubuntu 18
if [ ! -d "/etc/yum.repos.d" ]; then
sudo mkdir /etc/yum.repos.d
fi
echo "[Stripe]
name=stripe
baseurl=https://packages.stripe.dev/stripe-cli-rpm-local/
enabled=1
gpgcheck=0" | sudo tee /etc/yum.repos.d/stripe.repo
- uses: actions/checkout@v4
with:
sparse-checkout: |
scripts/install-test.sh
Expand Down
2 changes: 0 additions & 2 deletions scripts/install-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ run_install() {
;;

yum)
apt-get update
apt-get -y install yum
yum -y install stripe
;;

Expand Down

0 comments on commit e2df075

Please sign in to comment.