Update API from slack-api-ref@8a22e57 #569
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
entry: | |
- { ruby: "2.7" } | |
- { ruby: "2.7", concurrency: async-websocket } | |
- { ruby: "3.0" } | |
- { ruby: "3.1" } | |
- { ruby: "3.2" } | |
- { ruby: ruby-head, ignore: true } | |
- { ruby: jruby-head, ignore: true } | |
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: Set Concurrency | |
run: | | |
if [[ ! -z "${{ matrix.entry.concurrency }}" ]]; then | |
echo "Setting concurrency to ${{ matrix.entry.concurrency }}." | |
echo "CONCURRENCY=${{ matrix.entry.concurrency }}" >> $GITHUB_ENV | |
fi | |
- name: Run Tests | |
continue-on-error: ${{ matrix.entry.ignore || false }} | |
env: | |
RACK_ENV: test | |
run: | | |
bundle install | |
bundle exec rake | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@master |