From b20d70920b377946164636ac78e1a8f82b50f711 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 | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 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..a890ebcc7f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,51 @@ +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 + JRUBY_OPTS: "--dev -J-Xmx1000M" + 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: internal_investigation + run: bundle exec rake internal_investigation + - name: spec + run: bundle exec rake spec + + check_documentation_syntax: + runs-on: ubuntu-latest + name: Check documentation syntax + steps: + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + - run: bundle exec rake documentation_syntax_check