mirror of https://github.com/gitwatch/gitwatch
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
877 B
Plaintext
32 lines
877 B
Plaintext
4 years ago
|
name: Execution tests
|
||
4 years ago
|
on: [push, pull_request]
|
||
4 years ago
|
|
||
|
jobs:
|
||
|
gitwatch-tests:
|
||
4 years ago
|
runs-on: ${{ matrix.os }}
|
||
|
strategy:
|
||
|
matrix:
|
||
|
os: [ubuntu-latest, macOS-latest]
|
||
4 years ago
|
timeout-minutes: 5
|
||
4 years ago
|
steps:
|
||
4 years ago
|
- name: Install tools
|
||
4 years ago
|
run: |
|
||
4 years ago
|
if [ "$RUNNER_OS" == "Linux" ]; then
|
||
|
sudo apt-get -y install inotify-tools
|
||
|
sudo apt-get -y install bats
|
||
4 years ago
|
elif [ "$RUNNER_OS" == "macOS" ]; then
|
||
4 years ago
|
brew install fswatch
|
||
|
brew install coreutils # in order to get readlink
|
||
|
else
|
||
|
echo "Unsupported OS: $RUNNER_OS"
|
||
|
exit 1
|
||
|
fi
|
||
|
shell: bash
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
4 years ago
|
- name: Run the tests
|
||
|
run: |
|
||
4 years ago
|
git config --global user.email "test@email.com"
|
||
|
git config --global user.name "test user"
|
||
4 years ago
|
bats tests
|