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
0da8ef5bd3
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]
|
branches: [master]
|
||||||
|
|
||||||
jobs:
|
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:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
ruby-version: [3.4.4, 3.3.8, 3.2.8, 3.1.7]
|
||||||
- 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
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
|
|
@ -30,7 +32,5 @@ jobs:
|
||||||
ruby-version: ${{ matrix.ruby-version }}
|
ruby-version: ${{ matrix.ruby-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bundle install --jobs 4 --retry 3
|
run: bundle install --jobs 4 --retry 3
|
||||||
- name: Run command
|
- name: Run tests
|
||||||
env:
|
run: bundle exec rake
|
||||||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: ${{ matrix.command }}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue