Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,5 @@ on:
jobs:
check:
runs-on: ubuntu-latest
name: Check
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.1"
bundler-cache: true
- name: Lint with standardrb
run: bundle exec rake standard
- name: Typecheck with steep
run: bundle exec steep check
- run: echo "Check"
58 changes: 1 addition & 57 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,61 +11,5 @@ on:
jobs:
test:
runs-on: ubuntu-latest
container:
image: ruby:${{ matrix.ruby_version }}
name: Test ${{ matrix.ruby_version }}
strategy:
matrix:
ruby_version:
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- '2.7'
steps:
- uses: actions/checkout@v4
- name: Fix git
# https://github.com/actions/runner/issues/2033
run: chown -R $(id -u):$(id -g) $(pwd)
- name: Ruby version
run: ruby -v
- name: Update gem
run: |
gem update --system 3.3.27
gem update --system || echo "Fail to update to latest gem version"
- name: Gem version
run: gem -v
- name: Bundler version
run: bundle -v
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake spec

notify:
runs-on: ubuntu-latest
needs: test
if: !cancelled()
steps:
- uses: actions/checkout@v4
- if: ${{ needs.test.result == 'success' }}
name: Notify success
uses: ./.github/actions/slack
with:
message: |-
:github: ${{ github.repository }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

:github-check: ${{ github.ref_type }}: ${{ github.ref_name }}
channel: ${{ vars.SLACK_CHANNEL_ID }}
token: ${{ secrets.SLACK_BOT_TOKEN }}

- if: ${{ needs.test.result == 'failure' }}
uses: ./.github/actions/slack
name: Notify failure
with:
message: |-
:github: ${{ github.repository }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

:red-light: ${{ github.ref_type }}: ${{ github.ref_name }}
channel: ${{ vars.SLACK_CHANNEL_ID }}
token: ${{ secrets.SLACK_BOT_TOKEN }}
- run: echo "Test"