File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
1
3
bundle install
2
4
3
5
if [ -n " ${NVM_DIR} " ]; then
4
- . ${NVM_DIR} /nvm.sh && nvm install --lts
6
+ # shellcheck disable=SC1091
7
+ . " ${NVM_DIR} /nvm.sh" && nvm install --lts
5
8
yarn install
6
9
fi
7
10
8
- cd activerecord
11
+ cd activerecord || echo " activerecord directory doesn't exist " && exit
9
12
10
13
# Create PostgreSQL databases
11
14
bundle exec rake db:postgresql:rebuild
Original file line number Diff line number Diff line change
1
+ name : Devcontainer Shellcheck
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " .devcontainer/**/*.sh"
7
+ push :
8
+ paths :
9
+ - " .devcontainer/**/*.sh"
10
+
11
+ permissions :
12
+ contents : read
13
+
14
+ jobs :
15
+ devcontainer_shellcheck :
16
+ name : Devcontainer Shellcheck
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Checkout (GitHub)
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Lint Devcontainer Scripts
23
+ run : |
24
+ sudo apt install -y shellcheck
25
+ find .devcontainer/ -name '*.sh' -print0 | xargs -0 shellcheck
Original file line number Diff line number Diff line change 17
17
- name : Checkout (GitHub)
18
18
uses : actions/checkout@v4
19
19
20
+ - name : Lint Entrypoint Script
21
+ run : |
22
+ sudo apt install -y shellcheck
23
+ shellcheck .devcontainer/boot.sh
24
+
20
25
- name : Login to GitHub Container Registry
21
26
uses : docker/login-action@v3
22
27
with :
You can’t perform that action at this time.
0 commit comments