From e9e67927616b13701939c1b6801030563da17f94 Mon Sep 17 00:00:00 2001 From: Joakim Antman Date: Wed, 2 Dec 2020 21:37:16 +0200 Subject: [PATCH 1/2] Initial GitHub workflow CI --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..f62a608c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +--- +name: ci +on: + push: + branches: + - "*" + pull_request: + branches: + - "*" +jobs: + test: + strategy: + fail-fast: false + matrix: + ruby: + - 2.3 + - 2.4 + - 2.5 + - 2.6 + - 2.7 + experimental: [false] + include: + - ruby: "ruby-head" + experimental: true + runs-on: ubuntu-latest + continue-on-error: ${{ matrix.experimental }} + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Run tests + run: bundle exec rspec From 286979f92c97337ab33cb87cc94c02d2a4cb2e04 Mon Sep 17 00:00:00 2001 From: Joakim Antman Date: Wed, 2 Dec 2020 21:42:18 +0200 Subject: [PATCH 2/2] Truffleruby --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f62a608c..60ae2e4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,7 @@ on: - "*" jobs: test: + name: "Ruby {{ matrix.ruby }}" strategy: fail-fast: false matrix: @@ -22,6 +23,8 @@ jobs: include: - ruby: "ruby-head" experimental: true + - ruby: "truffleruby-head" + experimental: true runs-on: ubuntu-latest continue-on-error: ${{ matrix.experimental }}