Skip to content

Commit

Permalink
Merge pull request #29 from AlexNDRmac/matrix-biulds-for-tests
Browse files Browse the repository at this point in the history
Matrix builds for tests
  • Loading branch information
sp1thas authored Oct 21, 2022
2 parents 0d1f4fa + e104079 commit 639eb34
Showing 1 changed file with 33 additions and 7 deletions.
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
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
fi
- name: Install using wget
run: |
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/sp1thas/dropboxignore/master/utils/install.sh)"
Expand Down

0 comments on commit 639eb34

Please sign in to comment.