-
Notifications
You must be signed in to change notification settings - Fork 10
94 lines (90 loc) · 2.3 KB
/
build.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: build
on: [push, pull_request]
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true
bundler: 2
- name: Rubocop
run: bundle exec rubocop
test:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ruby:
- '3.1'
- '3.2'
- '3.3'
- ruby
- jruby
- truffleruby
gemfile:
- gemfiles/rails_6_1.gemfile
- gemfiles/rails_7_0.gemfile
- gemfiles/rails_7_1.gemfile
exclude:
- os: windows-latest
ruby: jruby
- os: windows-latest
ruby: truffleruby
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
env:
BUNDLE_GEMFILE: "${{matrix.gemfile}}"
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
bundler: 2
- name: Test
run: bundle exec rake test
env:
BUNDLE_GEMFILE: "${{matrix.gemfile}}"
test-vendor:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
ruby:
- '3.3'
gemfile:
- test/gemfiles/rails_7_0_dartsass.gemfile
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
repository: twbs/bootstrap-rubygem
path: vendor/bootstrap
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
bundler: 2
- name: Test
run: |
gem build dartsass-sprockets.gemspec
gem install dartsass-sprockets-*.gem
cd vendor/bootstrap
bundle config local.dartsass-sprockets ${{github.workspace}}
BUNDLE_GEMFILE=${{matrix.gemfile}} bundle install --jobs 4 --retry 3
BUNDLE_GEMFILE=${{matrix.gemfile}} bundle exec rake test