mirror of
https://github.com/gitwatch/gitwatch
synced 2024-11-15 06:12:52 +00:00
Merge branch 'github-actions'
This commit is contained in:
commit
1aa0408d96
31
.github/workflows/run-tests.yml
vendored
Normal file
31
.github/workflows/run-tests.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Execution tests
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
gitwatch-tests:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest]
|
||||
timeout-minutes: 3
|
||||
steps:
|
||||
- name: Install tools
|
||||
run: |
|
||||
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
|
||||
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"
|
||||
git config --global user.name "test user"
|
||||
bats tests
|
19
.travis.yml
19
.travis.yml
@ -1,19 +0,0 @@
|
||||
language: bash
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- sourceline: 'ppa:duggan/bats'
|
||||
packages:
|
||||
- bats
|
||||
- inotify-tools
|
||||
homebrew:
|
||||
packages:
|
||||
- fswatch
|
||||
- coreutils # in order to get greadlink
|
||||
- bats-core
|
||||
update: true
|
||||
script:
|
||||
- bats tests
|
Loading…
Reference in New Issue
Block a user