-
Notifications
You must be signed in to change notification settings - Fork 362
72 lines (72 loc) · 2.13 KB
/
install-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
on:
schedule:
- cron: '0 * * * *' # Every hour
push:
tags:
- '*'
pull_request:
types: [opened, edited]
name: Package manager test
jobs:
homebrew:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
scripts/install-test.sh
sparse-checkout-cone-mode: false
- run: bash scripts/install-test.sh homebrew
apt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
scripts/install-test.sh
sparse-checkout-cone-mode: false
- run: bash scripts/install-test.sh apt
yum:
runs-on: ubuntu-latest
container: ubuntu:18.04
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
with:
sparse-checkout: |
scripts/install-test.sh
sparse-checkout-cone-mode: false
- run: bash scripts/install-test.sh yum
scoop:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
scripts/install-test.sh
sparse-checkout-cone-mode: false
- uses: MinoruSekine/setup-scoop@v4
- shell: powershell
run: bash scripts/install-test.sh scoop
docker:
runs-on: ubuntu-latest
container: stripe/stripe-cli:latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
scripts/install-test.sh
sparse-checkout-cone-mode: false
- run: sh scripts/install-test.sh docker
pagerduty:
needs: [docker, scoop, yum, apt, homebrew]
runs-on: ubuntu-latest
if: ${{ always() && contains(needs.*.result, 'failure') }}
steps:
- name: Send PagerDuty alert on failure
uses: Entle/[email protected]
with:
pagerduty-integration-key: '${{ secrets.PAGERDUTY_INTEGRATION_KEY }}'
pagerduty-dedup-key: package_manager_install_workflow_failed