-
Notifications
You must be signed in to change notification settings - Fork 5
99 lines (87 loc) · 2.4 KB
/
run-tests.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
90
91
92
93
94
95
96
97
98
99
on:
- "push"
# - "pull_request"
name: "Run tests"
jobs:
nix:
name: "Tests *nix / all awks"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, macos-11, macos-12, macos-13 ]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-soft
with:
path: soft
key: ${{ matrix.os }}-${{ hashFiles('Makesurefile') }}-soft--all-2
- name: "run tests"
run: |
./makesure tested_awks
# https://github.com/cross-platform-actions/action
# https://github.com/marketplace/actions/cross-platform-action
freebsd:
runs-on: macos-12
name: "Tests on FreeBSD"
steps:
- uses: actions/checkout@v3
- name: Tests in FreeBSD
id: test
uses: cross-platform-actions/[email protected]
with:
operating_system: freebsd
version: '13.2'
shell: sh
run: |
sudo pkg install -y curl
# sudo pkg install -y wget
sudo pkg install -y bash
# sudo pkg install -y gawk
echo "---------------------------------------"
freebsd-version
pwd
ls -l
bash --version || true
awk --version || true
gawk --version || true
curl --version || true
wget --version || true
echo "======================================="
set -e
./makesure
macos_gawk:
name: "Tests macos / gawk"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-11, macos-12, macos-13 ]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-soft
with:
path: soft
key: ${{ matrix.os }}-soft--macos-gawk
- name: "run tests"
run: |
# TODO understand if this step can be cached
brew install gawk
PATH="/usr/local/opt/gawk/libexec/gnubin:$PATH" \
./makesure
win:
name: "Tests Win"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-2019, windows-2022 ]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-soft
with:
path: soft
key: ${{ matrix.os }}-soft--win
- name: "run tests"
run: |
& bash -e -c "./makesure"