mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-03-25 08:45:55 +00:00
33 lines
1,012 B
YAML
33 lines
1,012 B
YAML
name: CI
|
|
on: [push, pull_request]
|
|
|
|
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
|
|
run: |
|
|
# the token is public, has public_repo scope and belongs to the grape-bot user owned by @dblock, this is ok
|
|
TOKEN=$(echo -n Z2hwX2lYb0dPNXNyejYzOFJyaTV3QUxUdkNiS1dtblFwZTFuRXpmMwo= | base64 --decode)
|
|
DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
ruby-version: [3.4.4, 3.3.8, 3.2.8, 3.1.7]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby-version }}
|
|
- name: Install dependencies
|
|
run: bundle install --jobs 4 --retry 3
|
|
- name: Run tests
|
|
run: bundle exec rake
|