-
Notifications
You must be signed in to change notification settings - Fork 132
44 lines (40 loc) · 1.04 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
checks: write
contents: read
env:
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
VIMEO_ACCESS_TOKEN: ${{ secrets.VIMEO_ACCESS_TOKEN }}
jobs:
specs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', 'head']
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec
- name: Publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: ${{ github.workspace }}/coverage/coverage.json:simplecov
linter:
runs-on: ubuntu-latest
steps:
- name: StandardRB Linter
uses: amoeba/standardrb-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}