mirror of https://github.com/deajan/osync.git
32 lines
861 B
YAML
32 lines
861 B
YAML
name: macosx-tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Homebrew
|
|
id: set-up-homebrew
|
|
uses: Homebrew/actions/setup-homebrew@1f8e202ffddf94def7f42f6fa3a482e821489f9c
|
|
- name: Install Bash 4
|
|
run: |
|
|
#/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
#brew update
|
|
|
|
brew install bash
|
|
brew install fswatch
|
|
echo "/usr/local/bin" >> $GITHUB_PATH
|
|
- name: Execute tests and generate coverage report
|
|
run: |
|
|
export RUNNING_ON_GITHUB_ACTIONS=true
|
|
export SSH_PORT=22
|
|
sudo -E bash ./dev/tests/run_tests.sh
|
|
- name: Upload Coverage to Codecov
|
|
uses: codecov/codecov-action@v1
|