Initial commit #1
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: | |
| workflow_dispatch: | |
| jobs: | |
| smoke: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.3" | |
| bundler-cache: true | |
| - name: Build native extension | |
| run: | | |
| cd ext/corkscrew | |
| ruby extconf.rb | |
| make | |
| - name: Run specs | |
| run: bundle exec rspec | |
| - name: Run quick validation | |
| run: ruby -Ilib exe/corkscrew validate --quick | |
| - name: Run independent stats smoke | |
| run: python3 validate/harness/stats_check.py | |
| full-validation: | |
| if: github.event_name == 'workflow_dispatch' | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.3" | |
| bundler-cache: true | |
| - name: Build native extension | |
| run: | | |
| cd ext/corkscrew | |
| ruby extconf.rb | |
| make | |
| - name: Run full validation | |
| run: ruby -Ilib exe/corkscrew validate |