Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ruby.yml #1296

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Ruby

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: [3.1, 3.2, 3.3]

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Dpl supports the following providers:
* [Surge](#surge)
* [TestFairy](#testfairy)
* [Transifex](#transifex)

* [Ruby](#ruby) <!-- Pd3f1 -->

### Anynines

Expand Down Expand Up @@ -2325,6 +2325,31 @@ Examples:
Options can be given via env vars if prefixed with `TRANSIFEX_`. E.g. the option `--api_token` can
be given as `TRANSIFEX_API_TOKEN=<api_token>`.

### Ruby <!-- Pd3f1 -->

Support for running tests on Ruby versions 3.1, 3.2, and 3.3 is in **alpha**. Please see [Maturity Levels](https://github.com/travis-ci/dpl/#maturity-levels) for details. <!-- P6a5a -->

```
Usage: dpl ruby [options]

Summary:

Ruby GitHub Actions workflow

Description:

This workflow runs tests on Ruby versions 3.1, 3.2, and 3.3.

Options:

--trigger EVENT Trigger the workflow on push and pull request events (type: string, required) <!-- P815e -->

Examples:

dpl ruby --trigger push
dpl ruby --trigger pull_request
```

## Contributing to Dpl

### Table of Contents
Expand Down