-
Notifications
You must be signed in to change notification settings - Fork 32
38 lines (36 loc) · 927 Bytes
/
build-test.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
name: Build-test
on:
push:
pull_request_target:
workflow_call:
jobs:
build-test:
strategy:
matrix:
ruby-version: [2.6.0, 2.7.0, 3.0.0, 3.1.0, 3.2.0, head]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Test
run: make -f Makefile.docker test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
parallel: true
flag-name: ${{ matrix.ruby-version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Lint
run: make -f Makefile.docker lint
finish:
needs: build-test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true