-
-
Notifications
You must be signed in to change notification settings - Fork 198
89 lines (81 loc) · 1.91 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: test
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.run_id }}-test
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Shellcheck and Hadolint
run: make lint
docker-ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
docker-env:
- alma
- alpine
#- arch # disable arch testing for now, see #916
- debian-gnupg1 # We need to test legacy version of gnupg
- debian-gnupg2
- fedora
- rocky
- ubuntu
steps:
- uses: actions/checkout@v4
- name: Run checks
run: SECRETS_DOCKER_ENV="${{ matrix.docker-env }}" make docker-ci
osx-ci:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
test-verbose: [0, 1]
steps:
- uses: actions/checkout@v4
- name: Install deps
run: brew install gawk gnupg
- name: Run checks
run: SECRETS_TEST_VERBOSE=${{ matrix.test-verbose }} make test
freebsd-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run checks
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: pkg install -y gnupg bash gmake git gawk
run: |
which -a bash
which -a shell
whoami
env
freebsd-version
gmake test
windows-wsl-ci:
runs-on: windows-latest
steps:
- uses: Vampire/setup-wsl@v3
with:
update: 'true'
additional-packages: gnupg make man git gawk file
- run: git config --global core.autocrlf input
- uses: actions/checkout@v4
- shell: wsl-bash {0}
run: make test