Skip to content

Commit fa1c0d5

Browse files
committed
github ci action to shellcheck
1 parent ec181fb commit fa1c0d5

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.actrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
##
2+
# Configuration for `act`.
3+
# It allows to run GitHub Actions locally.
4+
#
5+
# 1. Install Docker.
6+
# 2. Install `act` (on Mac: `brew install act`).
7+
# 3. Run: `act`.
8+
#
9+
# Docker must be running for `act` to work.
10+
#
11+
# First run can take a long time,
12+
# as the container image is downloaded (~2 GB).
13+
# Run `act -v` to see the progress.
14+
##
15+
16+
# Force x86_64 architecture for Apple Silicon Macs.
17+
--container-architecture linux/amd64
18+
19+
# Avoid re-downloading the container image on every run.
20+
--pull=false
21+
22+
# Reuse the container between runs,
23+
# instead of recreating it every time.
24+
--reuse

.github/workflows/shellcheck.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# https://www.shellcheck.net/
2+
name: ShellCheck
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
shellcheck:
12+
name: Lint Shell Scripts
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
# https://github.com/ludeeus/action-shellcheck
20+
- name: Run ShellCheck
21+
uses: ludeeus/action-shellcheck@master

0 commit comments

Comments
 (0)