-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (54 loc) · 1.69 KB
/
downstream.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
name: downstream
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
cancel-in-progress: true
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * 1,3,5" # At 08:00 on Monday, Wednesday, and Friday # https://crontab.guru/#0_8_*_*_1,3,5
push:
branches:
- main
- v4.x
tags:
- v*.*.*
pull_request:
types: [opened, synchronize]
branches:
- '*'
jobs:
downstream:
name: downstream-${{matrix.name}}
strategy:
fail-fast: false
matrix:
include:
- url: https://github.com/rails/tailwindcss-rails
name: rails-unit
command: "bin/test"
ruby: "3.3"
- url: https://github.com/rails/tailwindcss-rails
name: rails-install
command: "env TAILWINDCSSOPTS=--path=../../.. test/integration/user_install_test.sh"
ruby: "3.3"
- url: https://github.com/rails/tailwindcss-rails
name: rails-upgrade
command: "env TAILWINDCSSOPTS=--path=../../.. test/integration/user_upgrade_test.sh"
ruby: "3.3"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
- run: bundle install --local || bundle install
- run: bundle exec rake download
- run: git clone --depth=1 ${{matrix.url}} ${{matrix.name}}
- name: ${{matrix.name}} test suite
working-directory: ${{matrix.name}}
run: |
rm -f Gemfile.lock
bundle remove tailwindcss-ruby || true
bundle add tailwindcss-ruby --path=".."
bundle install --local || bundle install
${{matrix.command}}