-
-
Notifications
You must be signed in to change notification settings - Fork 256
80 lines (73 loc) · 2.29 KB
/
shunit2.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
name: CI
on: [ push, pull_request ]
jobs:
ubuntu:
runs-on: ubuntu-latest
name: "Run tests on Ubuntu"
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update -qq -y && sudo apt-get install -qq -y wget curl shunit2
- name: Run tests
run: make test
fedora:
runs-on: ubuntu-latest
container: fedora:latest
name: "Run tests on Fedora"
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: dnf update -q -y && dnf install -q -y make patch wget curl shunit2
- name: Run tests
run: make test
opensuse:
runs-on: ubuntu-latest
container: opensuse/tumbleweed:latest
name: "Run tests on OpenSUSE"
steps:
- name: Install dependencies
run: zypper ref && zypper --non-interactive in tar gzip findutils make patch wget shunit2
- uses: actions/checkout@v4
- name: Run tests
run: make test
archlinux:
runs-on: ubuntu-latest
container: archlinux:latest
name: "Run tests on ArchLinux"
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pacman-key --init && \
pacman -Syu --noconfirm && \
pacman -Sy --noconfirm git base base-devel make patch wget curl && \
useradd -d /home/makepkg makepkg && \
mkdir -p /home/makepkg/{.config/pacman,.gnupg,out} && \
chown -R makepkg:users /home/makepkg && \
sudo -u makepkg /bin/bash -c "cd /home/makepkg && git clone --quiet --depth 1 https://aur.archlinux.org/shunit2.git && cd shunit2/ && makepkg" && \
pacman -U --noconfirm /home/makepkg/shunit2/shunit2-*.pkg.tar.zst
- name: Run tests
run: make test
macos:
runs-on: macos-latest
name: "Run tests on macOS"
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install wget shunit2
- name: Run tests
run: make test
freebsd:
runs-on: ubuntu-latest
name: "Run tests on FreeBSD"
steps:
- uses: actions/checkout@v4
- name: Run tests
id: freebsd
uses: vmactions/freebsd-vm@v1
with:
usesh: true
copyback: false
prepare: |
pkg install -y wget curl shunit2
run: make test