Sha256: 1ec3e5a52616ff232f989b0438c06f3783998d8a2c16f9aba4443d87ee4c6ff1

Contents?: true

Size: 1.45 KB

Versions: 2

Compression:

Stored size: 1.45 KB

Contents

name: Integration Tests
on: push
jobs:
  check-slack-api-token:
    runs-on: ubuntu-latest
    outputs:
      SLACK_API_TOKEN_EXISTS: ${{ steps.check-slack-api-token.outputs.SLACK_API_TOKEN_EXISTS }}
    steps:
      - name: Check for SLACK_API_TOKEN availability
        id: check-slack-api-token
        shell: bash
        run: |
          if [ "${{ secrets.SLACK_API_TOKEN }}" != '' ]; then
            echo "SLACK_API_TOKEN_EXISTS=true" >> $GITHUB_OUTPUT;
          else
            echo "SLACK_API_TOKEN_EXISTS=false" >> $GITHUB_OUTPUT;
          fi

  test:
    runs-on: ubuntu-latest
    needs: [check-slack-api-token]
    if: needs.check-slack-api-token.outputs.SLACK_API_TOKEN_EXISTS == 'true'
    strategy:
      matrix:
        entry:
          - { ruby: 2.7, concurrency: async-websocket }
    name: test (ruby=${{ matrix.entry.ruby }}, concurrency=${{ matrix.entry.concurrency || 'none' }})
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.entry.ruby }}
          bundler-cache: true
      - name: Run Tests
        env:
          CONCURRENCY: ${{ matrix.entry.concurrency }}
          SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }}
          RACK_ENV: test
          SPEC: "--pattern spec/**/integration/*_spec.rb"
          SPEC_OPTS: "--pattern spec/**/integration/*_spec.rb"
        run: |
          bundle install
          bundle exec rake

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 .github/workflows/integration_test.yml
slack-ruby-client-2.3.0 .github/workflows/integration_test.yml