From 4142736027cda2e19fc016e0e3fa6a9bc5ac3dd3 Mon Sep 17 00:00:00 2001 From: Lee Jarvis Date: Tue, 15 Jun 2021 12:04:04 +0100 Subject: Create CI Action Workflow --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cc1ac21 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [ master ] + paths: + - "lib/**" + - "test/**" + - ".github/**" + - "Rakefile" + pull_request: + branches: ["**"] + paths: + - "lib/**" + - "test/**" + - ".github/**" + - "Rakefile" + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: [ "2.7", head, jruby, truffleruby ] + name: Ruby ${{ matrix.ruby }} + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler: none + - name: Run tests + run: rake test -- cgit v1.2.1