forked from dfinity/agent-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 830 Bytes
/
shellcheck.yml
File metadata and controls
30 lines (29 loc) · 830 Bytes
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
name: Check shell scripts
on:
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- 'e2e/**'
- '.github/**'
push:
branches:
- main
jobs:
check_macos:
# ubuntu-latest has shellcheck 0.4.6, while macos-12 has 0.7.1
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: |
mkdir $HOME/bin
cd $HOME/bin
curl -L https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.darwin.x86_64.tar.xz \
| xz -d | tar x
- name: Check e2e scripts
run: $HOME/bin/shellcheck-v0.7.1/shellcheck e2e/bash/*.bash e2e/bash/util/*.bash
- name: Check workflow scripts
run: $HOME/bin/shellcheck-v0.7.1/shellcheck .github/workflows/*.sh