From 1350925a92e885bd5c419475f9ac83a7cbf9a4b8 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Tue, 8 Dec 2020 11:20:43 +0100 Subject: [PATCH] Use Github Actions for tests --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 0000000..87de381 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: ['2.5', '2.6', '2.7'] + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Set up Node + uses: actions/setup-node@v2-beta + with: + node-version: '14' + - name: Install dependencies + run: bundle install --without production + - name: Run tests + run: bundle exec rake + env: + RAILS_ENV: test