Merge pull request #6900 from openfoodfoundation/try-out-gh-actions-as-ci

Add Github CI build workflow
This commit is contained in:
Pau Pérez Fabregat
2021-02-17 12:45:15 +01:00
committed by GitHub

28
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Build
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rspec spec/queries