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] grape-version: ['~> 2.3.0', '~> 3.0'] 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 env: GRAPE_VERSION: ${{ matrix.grape-version }} - name: Run tests run: bundle exec rake env: GRAPE_VERSION: ${{ matrix.grape-version }}