|
|
|
@ -1,20 +1,30 @@
|
|
|
|
|
name: Execution tests
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
|
run:
|
|
|
|
|
shell: bash
|
|
|
|
|
jobs:
|
|
|
|
|
gitwatch-tests:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
|
os: [ubuntu-latest, macOS-latest]
|
|
|
|
|
timeout-minutes: 2
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
- name: Install tools
|
|
|
|
|
run: |
|
|
|
|
|
sudo apt-get -y install inotify-tools
|
|
|
|
|
sudo apt-get -y install bats
|
|
|
|
|
if [ "$RUNNER_OS" == "Linux" ]; then
|
|
|
|
|
sudo apt-get -y install inotify-tools
|
|
|
|
|
sudo apt-get -y install bats
|
|
|
|
|
elif [ "$RUNNER_OS" == "MacOS" ]; then
|
|
|
|
|
brew install fswatch
|
|
|
|
|
brew install coreutils # in order to get readlink
|
|
|
|
|
brew install bats-core
|
|
|
|
|
else
|
|
|
|
|
echo "Unsupported OS: $RUNNER_OS"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
shell: bash
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
- name: Run the tests
|
|
|
|
|
run: |
|
|
|
|
|
git config --global user.email "test@email.com"
|
|
|
|
|