Merge pull request #242 from Mangopay/improvement/github_actions #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mangopay2-net-ruby-ci | |
on: | |
push: | |
branches: | |
# push on master branch | |
- master | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby 2.6 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6.10 | |
- name: Install Rspec | |
run: | | |
gem install bundler -v 2.4.22 | |
bundler install | |
- name: Test | |
run: bundle exec rspec |