ci: Added workflow to update list of whitelisted canisters in dfinity/motoko-playground repo #4501
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check shell scripts | |
on: | |
pull_request: | |
paths: | |
- 'e2e/**' | |
- '.github/**' | |
- 'scripts/release.sh' | |
- 'scripts/prepare-dfx-assets.sh' | |
- 'scripts/update-frontend-canister.sh' | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
# When getting Rust dependencies, retry on network error: | |
CARGO_NET_RETRY: 10 | |
# Use the local .curlrc | |
CURL_HOME: . | |
jobs: | |
check_macos: | |
# ubuntu-latest has shellcheck 0.4.6, while macos-latest has 0.7.1 | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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/**/*.*sh | |
- name: Check release script | |
run: $HOME/bin/shellcheck-v0.7.1/shellcheck scripts/release.sh | |
- name: Check update-frontend-canister.sh script | |
run: $HOME/bin/shellcheck-v0.7.1/shellcheck scripts/update-frontend-canister.sh |