ruby: support 3.1+ and its syntax #386
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: test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [3.2, 3.3] | |
platform: | |
- { os: ubuntu, target: linux-x64 } | |
runs-on: ${{ matrix.platform.os }}-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install just | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: just,typos | |
- name: typos | |
run: just typos | |
- name: setup | |
run: just setup | |
- name: lint | |
run: just lint | |
- name: test | |
run: just test | |
- name: examples | |
run: just examples | |
- name: doc | |
run: just doc | |
- name: package gem | |
run: just gem |