From 0033826ae1313da92347eb37080aa53984a5d060 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Wed, 22 Mar 2023 17:03:42 +0900 Subject: [PATCH] Use GitHub Actions for CI --- .github/workflows/main.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..75ea7dfb24 --- /dev/null +++ b/.github/workflows/main.yml @@ -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