-
-
Notifications
You must be signed in to change notification settings - Fork 148
122 lines (104 loc) ยท 2.98 KB
/
test-installer.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Installer Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linux-amd64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Run a script
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
run: |
sh install.sh
export CLIPBOARD_TMPDIR=/tmp
stty rows 80 cols 120
bash src/tests/suite.sh
macos-arm64-amd64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Run a script
run: |
export CLIPBOARD_TMPDIR=$TMPDIR
sh install.sh
bash src/tests/suite.sh
windows-amd64:
strategy:
matrix:
windows: [2022, 2019]
runs-on: windows-${{ matrix.windows }}
steps:
- uses: actions/checkout@v3
- name: Run a script
shell: powershell
run: |
Start-Process powershell -Verb runAs -ArgumentList '-Command "Set-ExecutionPolicy RemoteSigned"'
(Invoke-WebRequest -UseBasicParsing https://github.com/Slackadays/Clipboard/raw/main/install.ps1).Content | powershell
#restart powershell to get the new path
$env:CLIPBOARD_TMPDIR = "C:\Users\runneradmin\AppData\Local\Temp"
Start-Process powershell -Verb runAs -ArgumentList '-Command bash src/tests/suite.sh'
freebsd-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run a script
uses: cross-platform-actions/action@v0.13.0
with:
operating_system: freebsd
architecture: x86-64
version: '13.1'
shell: bash
run: |
sh install.sh
#export CLIPBOARD_TMPDIR=/tmp
#bash src/tests/suite.sh
openbsd-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run a script
uses: cross-platform-actions/action@v0.13.0
with:
operating_system: openbsd
architecture: x86-64
version: '7.2'
shell: bash
run: |
sh install.sh
#export CLIPBOARD_TMPDIR=/tmp
#bash src/tests/suite.sh
openbsd-arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run a script
uses: cross-platform-actions/action@v0.13.0
with:
operating_system: openbsd
architecture: arm64
version: '7.2'
shell: bash
run: |
sh install.sh
#export CLIPBOARD_TMPDIR=/tmp
#bash src/tests/suite.sh
netbsd-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run a script
uses: cross-platform-actions/action@v0.13.0
with:
operating_system: netbsd
architecture: x86_64
version: '9.2'
shell: bash
run: |
sh install.sh
#export CLIPBOARD_TMPDIR=/tmp
#bash src/tests/suite.sh