Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix builds for tests #29

Merged
merged 5 commits into from
Oct 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 33 additions & 7 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,33 @@ name: Testing
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
- '**/mkdocs.yml'
- '**/shellcheck.yml'
- '**/stats.yml'
pull_request:
branches: [ master ]

env:
HOMEBREW_NO_AUTO_UPDATE: 1

jobs:
unit:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, macos-11, macos-12 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install os dependencies
run: sudo apt update && sudo apt install attr kcov
run: |
if [ "${{ runner.os }}" = "Linux" ]; then
sudo apt update && sudo apt install attr kcov
else
brew install kcov diffutils grep
AlexNDRmac marked this conversation as resolved.
Show resolved Hide resolved
fi
- name: Install bats-core
run: |
git clone https://github.com/bats-core/bats-core.git
Expand All @@ -33,13 +50,22 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
integration:
runs-on: ubuntu-latest

integration:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, macos-11, macos-12 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install os dependencies
run: sudo apt update && sudo apt install wget curl
run: |
if [ "${{ runner.os }}" = "Linux" ]; then
sudo apt update && sudo apt install wget curl
else
brew install wget curl
sp1thas marked this conversation as resolved.
Show resolved Hide resolved
fi
- name: Install using wget
run: |
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/sp1thas/dropboxignore/master/utils/install.sh)"
Expand Down