-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Djuuu/develop
Version 3.0.0
- Loading branch information
Showing
26 changed files
with
4,745 additions
and
1,372 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Tests | ||
|
||
on: [push, pull_request] | ||
|
||
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" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "test/test_helper/bats-support"] | ||
path = test/test_helper/bats-support | ||
url = https://github.com/bats-core/bats-support.git | ||
[submodule "test/test_helper/bats-assert"] | ||
path = test/test_helper/bats-assert | ||
url = https://github.com/bats-core/bats-assert.git |
Oops, something went wrong.