-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (57 loc) · 1.75 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
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: 0 8 * * 6
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Create workfolder
run: |
mkdir -p ~/dotfiles-install-dir
- name: Install dotfiles
run: |
HOME=~/dotfiles-install-dir ./install -vv
- name: Show dotfiles
run: |
ls -alh ~/dotfiles-install-dir
- name: Test homebrew installer
run: |
HOME=~/dotfiles-install-dir installers/homebrew.sh
- name: Test Brewfile install (macos)
run: |
brew upgrade
brew bundle --file=_macos/Brewfile --verbose
if: runner.os == 'macOS'
- name: Test Brewfile install (linux)
run: /home/linuxbrew/.linuxbrew/bin/brew bundle --file=_linux/Brewfile --verbose
if: runner.os == 'linux'
- name: Test Python installer + setup
run: |
echo $PYENV_ROOT
echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH
HOME=~/dotfiles-install-dir installers/python.sh
# Test Pyenv-installed Python version
python -c "import sys; print(sys.version)"
python -c "import sys; assert sys.version.startswith('${BASE_PYTHON_VER}')"
# Test Pipx
poetry --version
env:
PYENV_ROOT: /home/runner/dotfiles-install-dir/.pyenv
if: runner.os == 'Linux'
- name: Test docker installer
run: |
HOME=~/dotfiles-install-dir installers/docker.sh
- name: Test Docker setup
run: |
sudo docker run hello-world
if: runner.os == 'Linux'