-
-
Notifications
You must be signed in to change notification settings - Fork 36
52 lines (45 loc) 路 1.2 KB
/
Copy pathtests.yml
File metadata and controls
52 lines (45 loc) 路 1.2 KB
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
name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
tests:
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
platform: ["ubuntu-latest", "macos-latest"]
ruby: ["3.3", "3.4", "4.0"]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Git repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@a0102e0972be65f351c307e2d64b9314a57c8073 # v1.324.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run repository checks
run: bundle exec rake
- name: Upload coverage results
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
files: coverage/coverage.xml
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}
conclusion:
needs: tests
if: always()
runs-on: ubuntu-slim
steps:
- name: Result
env:
RESULT: ${{ needs.tests.result }}
run: |
[[ "${RESULT}" == success ]]