Skip to content

Commit

Permalink
CI: add macOS testing
Browse files Browse the repository at this point in the history
Added testing on macOS into workflow.

Closes #254
  • Loading branch information
better0fdead committed Dec 19, 2022
1 parent a918eb5 commit e6782a8
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 27 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,37 @@ jobs:

- name: Integration tests
run: mage integrationfull

full-ci-macOS:
if: |
(github.event_name == 'push') ||
(github.event_name == 'pull_request' &&
github.event.action == 'labeled' &&
github.event.label.name == 'full-ci') ||
(github.event_name == 'pull_request' &&
github.event.action == 'synchronize' &&
contains(github.event.pull_request.labels.*.name, 'full-ci'))
runs-on: macos-12
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
submodules: recursive

- name: Install dependencies
run: |
brew install --overwrite go mage
brew install python3
pip3 install pytest tarantool requests psutil pyyaml netifaces
- name: Build tt
run: mage build

- name: Install tarantool
run: brew install tarantool

- name: Run unit tests
run: mage unit

- name: Run integration tests
run: mage integrationfull
27 changes: 0 additions & 27 deletions .github/workflows/macos.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,35 @@ jobs:

- name: Integration tests
run: mage integration

tests-mac-os-ce:
if: |
(github.event_name == 'push') ||
(github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.owner.login != 'tarantool' &&
!contains(github.event.pull_request.labels.*.name, 'full-ci'))
runs-on: macos-12

steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
submodules: recursive

- name: Install dependencies
run: |
brew install --overwrite go mage
brew install python3
pip3 install pytest tarantool requests psutil pyyaml netifaces
- name: Build tt
run: mage build

- name: Install tarantool
run: brew install tarantool

- name: Run unit tests
run: mage unit

- name: Run integration tests
run: mage integration

0 comments on commit e6782a8

Please sign in to comment.