Use links to merge request diff view #104
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: Tests | |
on: | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- 'completion/**' | |
- 'doc/**' | |
- 'git-mr-completion.bash' | |
- 'LICENSE' | |
- 'README.md' | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'completion/**' | |
- 'doc/**' | |
- 'git-mr-completion.bash' | |
- 'LICENSE' | |
- 'README.md' | |
jobs: | |
shellcheck: | |
name: ShellCheck | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Run ShellCheck | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install shellcheck | |
LC_ALL=C.UTF-8 shellcheck git-mr | |
test: | |
name: Test | |
strategy: | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- windows-2019 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Show versions | |
run: | | |
bash --version | |
git --version | |
- name: Setup BATS | |
uses: mig4/setup-bats@v1 | |
with: | |
bats-version: 1.8.2 | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Run tests on ${{ matrix.os }} | |
run: bash -c "bats --print-output-on-failure --formatter tap ./test" | |
test-mac: | |
name: Test (Mac) | |
strategy: | |
matrix: | |
os: | |
- macos-11 | |
- macos-12 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install dependencies | |
run: | | |
brew install \ | |
bash \ | |
gnu-sed \ | |
grep | |
- name: Show versions | |
run: | | |
bash --version | |
git --version | |
- name: Setup BATS | |
uses: mig4/setup-bats@v1 | |
with: | |
bats-version: 1.8.2 | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Run tests on ${{ matrix.os }} | |
run: bash -c "bats --print-output-on-failure --formatter tap ./test" |