forked from c-bata/go-prompt
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.29 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
name: Tests
on: [push, pull_request]
env:
GO_VERSION: 1.14
PYTHON_VERSION: '3.x'
jobs:
tests:
if: |
(github.event_name == 'push') ||
(github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.owner.login != 'tarantool')
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Prepare env
uses: ./.github/actions/prepare-test-env
- name: Static code check
uses: ./.github/actions/static-code-check
- name: Unit tests
run: make test
- name: Integration tests
run: |
source ./venv/bin/activate
make integration
tests-mac-os:
if: |
(github.event_name == 'push') ||
(github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.owner.login != 'tarantool')
runs-on: macos-12
steps:
- uses: actions/checkout@master
- name: Prepare env
uses: ./.github/actions/prepare-test-env
- name: Install additional dependencies
run: brew install tmux
- name: Static code check
uses: ./.github/actions/static-code-check
- name: Unit tests
run: make test
- name: Integration tests
run: |
source ./venv/bin/activate
make integration