Skip to content

Commit 51d2868

Browse files
committed
ci: test downstream dependency tailwindcss-rails
1 parent 0291b40 commit 51d2868

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/downstream.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: downstream
2+
concurrency:
3+
group: "${{github.workflow}}-${{github.ref}}"
4+
cancel-in-progress: true
5+
on:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: "0 8 * * 1,3,5" # At 08:00 on Monday, Wednesday, and Friday # https://crontab.guru/#0_8_*_*_1,3,5
9+
push:
10+
branches:
11+
- main
12+
- v*.*.x
13+
tags:
14+
- v*.*.*
15+
pull_request:
16+
types: [opened, synchronize]
17+
branches:
18+
- '*'
19+
20+
jobs:
21+
downstream:
22+
name: downstream-${{matrix.name}}
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
include:
27+
- url: https://github.com/rails/tailwindcss-rails
28+
name: tailwindcss-rails
29+
command: "bin/test"
30+
ruby: "3.3"
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: ${{matrix.ruby}}
37+
- run: gem install bundler -v ">= 2.3.22" # for "add --path"
38+
- run: bundle install --local || bundle install
39+
- run: git clone --depth=1 ${{matrix.url}} ${{matrix.name}}
40+
- name: ${{matrix.name}} test suite
41+
working-directory: ${{matrix.name}}
42+
run: |
43+
bundle remove tailwindcss-ruby || true
44+
bundle add tailwindcss-ruby --path=".."
45+
bundle install --local || bundle install
46+
${{matrix.command}}

0 commit comments

Comments
 (0)