-
-
Notifications
You must be signed in to change notification settings - Fork 6
29 lines (28 loc) · 1.08 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
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: Installation on ${{ matrix.os }} [${{ matrix.flag }}]
runs-on: ubuntu-latest
strategy:
matrix:
os: ['debian:bullseye-slim', 'ubuntu:rolling']
flag: [-v, '', -q]
steps:
- uses: actions/checkout@v4
- name: Installation Info
env:
IMAGE: ${{ matrix.os }}
REPO_NAME: spywhere/dotfiles
run: |
docker run -v $(pwd):/root/dots -e REPO_NAME=$REPO_NAME $IMAGE sh -c "apt update && apt install -y curl && sh /root/dots/install.sh -i"
- name: Perform Installation
env:
IMAGE: ${{ matrix.os }}
FLAG: ${{ matrix.flag }}
FLAGS: ${{ vars.FLAGS }}
REPO_NAME: spywhere/dotfiles
run: |
docker run -v $(pwd):/root/dots -e REPO_NAME=$REPO_NAME $IMAGE sh -c "apt update && apt install -y curl && sh /root/dots/install.sh -y $FLAG $FLAGS"