-
Notifications
You must be signed in to change notification settings - Fork 10
103 lines (92 loc) · 3.03 KB
/
ci.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
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
on: [push]
name: Tests
jobs:
core-tests:
name: Core library
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Run tests
run: ./bin/dot self test file 'coll|dict|platform'
json-tests:
name: JSONs
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install tools
run: sudo ./bin/dot pkg add jq
- name: Run tests
run: ./bin/dot self test file 'json'
# npm-tests:
# name: npm
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources
# uses: actions/checkout@v2
# - name: npm test
# run: cd ./repos/tasker-js; make test
help-tests:
name: Help
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Run tests
run: ./bin/dot self test file 'help'
imports-tests:
name: Imports
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Run tests
run: ./bin/dot self test file 'imports'
references-tests:
name: References
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Run tests
run: ./bin/dot self test file 'references'
symlink-tests:
name: Symlinks
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Run tests
run: ./bin/dot self test file 'symlink'
shellcheck-tests:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install shellcheck
run: shellcheck --version; sudo apt-get remove shellcheck; wget -qO- https://github.com/koalaman/shellcheck/releases/download/v0.7.2/shellcheck-v0.7.2.linux.x86_64.tar.xz | tar -xJf -; cd shellcheck-v0.7.2; sudo cp shellcheck /usr/local/bin; sudo cp shellcheck /usr/bin; shellcheck --version
- name: Run tests
run: ./bin/dot self test file 'shellcheck'
install-tests:
name: Install
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: bashrc is fine
run: ./bin/dot self test file 'bashrc'
- name: Cleanup
run: rm -rf ./tests || true; cd $HOME && for f in $(ls -a | grep '^\.'); do rm "$f" || true; done
- name: dot self install
run: ./bin/dot self install --profile simple || true
- name: symlink
run: ln -s /home/runner/work/dotfiles/dotfiles /home/runner/dotfiles || true
- name: ls
run: ls -la $HOME; echo; echo; cat /home/runner/dotfiles/shell/bash/bashrc
- name: DOTFILES env variable
run: bash -c 'source $HOME/.bashrc; env; env | grep DOTFILES'
- name: dot version
run: bash -c 'source $HOME/.bashrc; dot --version; dot --version | grep -E "202[0-9]\.[0-9]+\.[0-9]+$"'