Skip to content

Commit

Permalink
Merge pull request #152 from Shopify/keiththomps/add-cla-workflow
Browse files Browse the repository at this point in the history
Add CLA workflow and clean up testing matrix
  • Loading branch information
keiththomps authored Aug 8, 2023
2 parents dbe2341 + a377a0a commit a1c1758
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@ jobs:
strategy:
matrix:
ruby:
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
gemfile:
- Gemfile
- gemfiles/activesupport-5.2.gemfile
- gemfiles/activesupport-6.0.gemfile
- gemfiles/activesupport-6.1.gemfile
- gemfiles/activesupport-7.0.gemfile
exclude:
- ruby: '2.6'
gemfile: gemfiles/activesupport-7.0.gemfile

name: Ruby ${{ matrix.ruby }} ${{ matrix.gemfile }}
steps:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .github/workflows/cla.yml
name: Contributor License Agreement (CLA)

on:
pull_request_target:
types: [opened, synchronize]
issue_comment:
types: [created]

jobs:
cla:
runs-on: ubuntu-latest
if: |
(github.event.issue.pull_request
&& !github.event.issue.pull_request.merged_at
&& contains(github.event.comment.body, 'signed')
)
|| (github.event.pull_request && !github.event.pull_request.merged)
steps:
- uses: Shopify/shopify-cla-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
cla-token: ${{ secrets.CLA_TOKEN }}
5 changes: 0 additions & 5 deletions gemfiles/activesupport-5.2.gemfile

This file was deleted.

0 comments on commit a1c1758

Please sign in to comment.