Skip to content

Commit

Permalink
Use GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Mar 22, 2023
1 parent ab1a837 commit 0033826
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

permissions: # added using https://github.com/step-security/secure-workflows
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
main:
name: ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ubuntu-latest
env:
# See https://github.com/tmm1/test-queue#environment-variables
TEST_QUEUE_WORKERS: 2
strategy:
fail-fast: false
matrix:
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', 'head', 'jruby-9.4']
steps:
- name: checkout
uses: actions/checkout@v3
- name: set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: spec
run: bundle exec rake spec
- name: ascii_spec
run: bundle exec rake ascii_spec
- name: internal_investigation
run: bundle exec rake internal_investigation

0 comments on commit 0033826

Please sign in to comment.