-
Notifications
You must be signed in to change notification settings - Fork 186
44 lines (42 loc) · 1.5 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
35
36
37
38
39
40
41
42
43
44
name: Testing
on: [push, pull_request]
jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: Install packages
run: |
gem install awesome_bot
wget "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz"
tar -xvf shellcheck-stable.linux.x86_64.tar.xz
sudo cp shellcheck-stable/shellcheck /usr/bin/
shellcheck --version
- name: Check links in the README file
run: awesome_bot README.md --white-list "sublimetext.com"
- name: Check bugs, warnings, and errors in shell scripts
# Read more the details of exceptions on ShellCheck Wiki.
# Example of SC1000:
# https://github.com/koalaman/shellcheck/wiki/SC1000
run: |
shellcheck bin/*
shellcheck install.sh
export SHELLCHECK_OPTS="-e SC1090,SC2148"
shellcheck -e SC1004 .aliases
shellcheck .bash_profile
shellcheck -e SC1091,SC2154 .bashrc
shellcheck .exports
shellcheck -e SC2164 .functions
shellcheck -e SC1008,SC1115,SC1128,SC2034,SC2096,SC2154,SC2239 .oh-my-zsh/themes/oxide.zsh-theme
shellcheck -e SC2034 .zshrc
- name: Install dikiaap/dotfiles
run: |
./install.sh -i
./install.sh -r