有限基本支持 HarmonyOS 的包 #215
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: CI | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
branches: | |
- main | |
pull_request: | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Ruby 3.x | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3 | |
bundler-cache: true | |
- name: Rubocop | |
run: bundle exec rubocop --format progress | |
test: | |
needs: [ linting ] | |
name: test ${{ matrix.ruby }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [ ruby-3.1, ruby-3.2, ruby-3.3 ] | |
experimental: [false] | |
include: | |
- ruby: head | |
experimental: true | |
- ruby: truffleruby-head | |
experimental: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: RSpec | |
continue-on-error: ${{ matrix.experimental }} | |
run: bundle exec rubocop |