Skip to content

Commit

Permalink
Merge pull request #1 from Djuuu/develop
Browse files Browse the repository at this point in the history
Version 3.0.0
  • Loading branch information
Djuuu authored Mar 1, 2023
2 parents 3d53097 + 6113905 commit 6686f07
Show file tree
Hide file tree
Showing 26 changed files with 4,745 additions and 1,372 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/tests.yml
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"
6 changes: 6 additions & 0 deletions .gitmodules
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
Loading

0 comments on commit 6686f07

Please sign in to comment.