-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.22 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
name: Test
on:
push:
paths:
- .github/workflows/test.yml
- action.yml
pull_request:
branches: [main]
paths:
- .github/workflows/test.yml
- action.yml
schedule:
- cron: '30 05 * * 0'
jobs:
test:
runs-on: windows-latest
strategy:
matrix:
distro:
- none # only enable wsl2 and don't install a distro
- Ubuntu
- Debian
- kali-linux
- Ubuntu-18.04
- Ubuntu-20.04
- Ubuntu-22.04
- Ubuntu-24.04
- OracleLinux_7_9
- OracleLinux_8_7
- OracleLinux_9_1
- openSUSE-Leap-15.6
- SUSE-Linux-Enterprise-15-SP5
- SUSE-Linux-Enterprise-15-SP6
- openSUSE-Tumbleweed
steps:
- uses: actions/checkout@v4.2.2
- uses: ./
with:
distro: ${{ matrix.distro }}
- if: ${{ matrix.distro != 'none' }}
run: cat /etc/os-release && uname -a
shell: wsl-run {0}
- if: ${{ matrix.distro != 'none' }}
name: Run a multi-line script
run: |
ls -alh
cat ${0} # prints the script itself
echo "Hello, world!"
echo "Bye, world!"
shell: wsl-run {0}