mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-03-25 08:45:55 +00:00
Split up workflow into 2 jobs
This commit is contained in:
parent
0a11b5d101
commit
e590d4dcba
1 changed files with 17 additions and 17 deletions
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
|
|
@ -6,23 +6,25 @@ on:
|
|||
branches: [master]
|
||||
|
||||
jobs:
|
||||
danger:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 3.4.4
|
||||
- name: Install dependencies
|
||||
run: bundle install --jobs 4 --retry 3
|
||||
- name: Run danger
|
||||
env:
|
||||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: bundle exec danger
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- ruby-version: 3.4.4
|
||||
command: bundle exec danger
|
||||
|
||||
- ruby-version: 3.4.4
|
||||
command: bundle exec rake
|
||||
- ruby-version: 3.3.8
|
||||
command: bundle exec rake
|
||||
- ruby-version: 3.2.8
|
||||
command: bundle exec rake
|
||||
- ruby-version: 3.1.7
|
||||
command: bundle exec rake
|
||||
|
||||
ruby-version: [3.4.4, 3.3.8, 3.2.8, 3.1.7]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ruby/setup-ruby@v1
|
||||
|
|
@ -30,7 +32,5 @@ jobs:
|
|||
ruby-version: ${{ matrix.ruby-version }}
|
||||
- name: Install dependencies
|
||||
run: bundle install --jobs 4 --retry 3
|
||||
- name: Run command
|
||||
env:
|
||||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: ${{ matrix.command }}
|
||||
- name: Run tests
|
||||
run: bundle exec rake
|
||||
|
|
|
|||
Loading…
Reference in a new issue