-
Notifications
You must be signed in to change notification settings - Fork 29
45 lines (44 loc) · 1.03 KB
/
ci.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
---
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
name: Tests
runs-on: macos-latest
timeout-minutes: 10
steps:
- name: Install dependencies
run: brew install pkg-config portaudio
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run tests
run: CI_RUN='true' bundle exec rake test
- name: upload test-fail logs
if: '!cancelled()'
uses: actions/upload-artifact@v3
with:
name: test failure logs
path: logger/test_failure*.out.log
linter:
name: Linter
runs-on: macos-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run linter
run: bundle exec rubocop