Add workflow for checking the script #30
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: Shell | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
check-shell-scripts: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run shfmt and shellcheck | |
uses: luizm/[email protected] | |
env: | |
SHFMT_OPTS: -d -s -w -i 4 -ln bash | |
check-script-logic: | |
name: Test all packages on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23.1' | |
- name: Configure test repository | |
run: | | |
ls -la | |
git clone https://github.com/xorcare/tornado | |
cd tornado | |
git checkout dc67e0b4138c3487d3b4d5f012b6a3262d2db25e | |
git config user.email "[email protected]" | |
git config user.name "Your Name" | |
- name: Test | |
working-directory: tornado | |
run: | | |
ls -la | |
../go-mod-bump.sh -h | |
../go-mod-bump.sh -help | |
../go-mod-bump.sh go | |
../go-mod-bump.sh all |