Skip to content

ci: unify main and packaging workflows into ci.yml #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions .github/workflows/gem-install.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: packaging
name: ci
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
cancel-in-progress: true
Expand All @@ -7,7 +7,7 @@ on:
push:
branches:
- main
- v4.x
- v4*
tags:
- v*.*.*
pull_request:
Expand All @@ -16,7 +16,25 @@ on:
- '*'

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4", "head"]
steps:
- uses: actions/checkout@v4
- run: rm Gemfile.lock
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler: latest
bundler-cache: true
- name: Run tests
run: bundle exec rake test

package:
needs: [ "test" ]
name: "package (${{ matrix.platform }})"
strategy:
fail-fast: false
Expand Down Expand Up @@ -47,9 +65,9 @@ jobs:
path: pkg
retention-days: 1

vanilla-install:
install-ruby:
name: "install (ruby)"
needs: ["package"]
needs: [ "package" ]
runs-on: ubuntu-latest
steps:
- uses: ruby/setup-ruby@v1
Expand All @@ -62,7 +80,7 @@ jobs:
- run: "gem install pkg/tailwindcss-ruby-*.gem"
- run: "tailwindcss 2>&1 | fgrep 'ERROR: Cannot find the tailwindcss executable'"

install-matrix:
install-native:
name: "install (${{ matrix.platform }})"
needs: [ "package" ]
strategy:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
- url: https://github.com/rails/tailwindcss-rails
name: rails-unit
command: "bin/test"
ruby: "3.3"
ruby: "3.4"
- url: https://github.com/rails/tailwindcss-rails
name: rails-install
command: "env TAILWINDCSSOPTS=--path=../../.. test/integration/user_install_test.sh"
ruby: "3.3"
ruby: "3.4"
- url: https://github.com/rails/tailwindcss-rails
name: rails-upgrade
command: "env TAILWINDCSSOPTS=--path=../../.. test/integration/user_upgrade_test.sh"
ruby: "3.3"
ruby: "3.4"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/main.yml

This file was deleted.

Loading