mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 16:46:42 +01:00
29 lines
668 B
YAML
29 lines
668 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [ $default-branch ]
|
|
pull_request:
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
ruby: ['2.6', '2.7', '3.0']
|
|
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
|
|
with:
|
|
node-version: '14'
|
|
- name: Install dependencies
|
|
run: bundle install --without production
|
|
- name: Run tests
|
|
run: bundle exec rake
|
|
env:
|
|
RAILS_ENV: test
|