-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.17 KB
/
main.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
name: test
on:
push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make symlink of $HOME/dotfiles
run:
ln -sv $GITHUB_WORKSPACE $HOME/dotfiles
- name: update for git submodule w/ git scheme
run: |
# see: https://github.com/actions/checkout/issues/14
#
# disable the keychain credential helper
git config --global credential.helper ""
# enable the local store credential helper
git config --global --add credential.helper store
# add credential
echo "https://x-access-token:${{ secrets.ACCESS_TOKEN }}@github.com" >> ~/.git-credentials
# tell git to use https instead of ssh whenever it encounters it
sh -c 'git config --global url."https://github.com/".insteadof [email protected]:'
- name: Install dependencies
run: |
sudo apt-get install -y --no-install-recommends vim zsh python3-pip build-essential
pip3 install -U pip
pip3 install shellcheck-py
env:
DEBIAN_FRONTEND: noninteractive
- name: Run ShellCheck
run: shellcheck ./install
- name: Run ./install
run: ./install