forked from Mange/roadie-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (58 loc) · 1.57 KB
/
main.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
59
60
61
62
63
64
65
66
67
name: Main
on:
schedule:
# Run on the first day of every month
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: '0 0 1 * *'
# Allow running manually
# For more details: https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow?tool=webui
workflow_dispatch:
push:
branches:
- main
- master
paths-ignore:
- '**.md'
- '**.txt'
pull_request:
types: [opened, synchronize, reopened]
jobs:
base:
name: Ruby ${{ matrix.ruby }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
steps:
- name: Checkout code
uses: actions/checkout@v4
# This setup is not compatible with the way Travis CI was
# setup, so the cache will only work for the root folder.
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Rake
run: bundle exec rake
- uses: codecov/codecov-action@v4
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# This setup is not compatible with the way Travis CI was
# setup, so the cache will only work for the root folder.
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: standardrb
run: bundle exec standardrb