fix: fetching thread members #628
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| # --- Test on multiple Ruby versions --- | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby: [3.2, 3.3, 3.4] | |
| container: | |
| image: ruby:${{ matrix.ruby }}-alpine | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install OS packages | |
| run: apk add git build-base ruby-dev libsodium-dev | |
| - name: Cache bundle | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor/bundle | |
| key: bundle-${{ hashFiles('Gemfile', 'discordrb.gemspec') }}-${{ matrix.ruby }} | |
| restore-keys: | | |
| bundle-${{ matrix.ruby }} | |
| - name: Install dependencies | |
| run: bundle install --path vendor/bundle | |
| - name: Run RSpec | |
| run: | | |
| mkdir -p rspec | |
| bundle exec rspec --format progress --format RspecJunitFormatter -o rspec/rspec.xml | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rspec-results-${{ matrix.ruby }} | |
| path: rspec/rspec.xml | |
| # --- Rubocop --- | |
| rubocop: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ruby:3.3-alpine | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install OS packages | |
| run: apk add git build-base ruby-dev libsodium-dev | |
| - name: Cache bundle | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor/bundle | |
| key: bundle-${{ hashFiles('Gemfile', 'discordrb.gemspec') }}-rubocop | |
| - name: Install dependencies | |
| run: bundle install --path vendor/bundle | |
| - name: Run Rubocop | |
| run: bundle exec rubocop | |
| # --- Generate YARD docs --- | |
| yard: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ruby:3.3-alpine | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install OS packages | |
| run: apk add git build-base ruby-dev libsodium-dev | |
| - name: Cache bundle | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor/bundle | |
| key: bundle-${{ hashFiles('Gemfile', 'discordrb.gemspec') }}-yard | |
| - name: Install dependencies | |
| run: bundle install --path vendor/bundle | |
| - name: Run YARD | |
| run: | | |
| mkdir -p docs | |
| bundle exec yard --output-dir docs |