-
Notifications
You must be signed in to change notification settings - Fork 8
58 lines (58 loc) · 1.52 KB
/
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
name: Test
on:
pull_request:
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: true
matrix:
distro: [alpine, debian, fedora, opensuse, rocky, ubuntu]
method: [brew, repo, standalone]
shell: [ash, bash, dash, ksh, zsh]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Cosign
uses: sigstore/[email protected]
- name: Test
env:
DISTRO: ${{ matrix.distro }}
METHOD: ${{ matrix.method }}
SH: ${{ matrix.shell }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: tests/linux
run: ./test.sh
macos:
name: MacOS
runs-on: macos-latest
strategy:
fail-fast: true
matrix:
method: [brew, standalone]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Cosign
uses: sigstore/[email protected]
- name: Test
working-directory: tests/macos
run: ./${{ matrix.method }}.sh
widows:
name: Windows
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
method: [standalone]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Cosign
uses: sigstore/[email protected]
- name: Test
working-directory: tests\windows
run: .\test.ps1 -method "${{ matrix.method }}"