-
-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (45 loc) · 1.47 KB
/
os-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
name: Installation Test (via Docker)
on: push
# Available runners
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
jobs:
local:
name: Local Installation (${{ matrix.os }}) [${{ matrix.flag }}]
runs-on: ubuntu-latest
strategy:
matrix:
os: ['debian:bullseye-slim', 'ubuntu:rolling']
flag: [-v, '', -q]
steps:
- uses: actions/checkout@v3
- name: Installation Info
env:
IMAGE: ${{ matrix.os }}
run: |
docker run -v $(pwd):/root/dots $IMAGE sh /root/dots/install.sh -i
- name: Perform Installation
env:
IMAGE: ${{ matrix.os }}
FLAG: ${{ matrix.flag }}
run: |
docker run -v $(pwd):/root/dots $IMAGE sh /root/dots/install.sh $FLAG
remote:
name: Remote Installation (${{ matrix.os }}) [${{ matrix.flag }}]
runs-on: ubuntu-latest
strategy:
matrix:
os: ['debian:bullseye-slim', 'ubuntu:rolling']
flag: [-v, '', -q]
steps:
- uses: actions/checkout@v3
- name: Installation Info
env:
IMAGE: ${{ matrix.os }}
run: |
docker run -v $(pwd):/root/dots $IMAGE sh -c "$(cat install.sh)" - -i
- name: Perform Installation
env:
IMAGE: ${{ matrix.os }}
FLAG: ${{ matrix.flag }}
run: |
docker run -v $(pwd):/root/dots $IMAGE sh -c "$(cat install.sh)" - $FLAG