summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/newgem/github/workflows/main.yml.tt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/newgem/github/workflows/main.yml.tt')
-rw-r--r--lib/bundler/templates/newgem/github/workflows/main.yml.tt18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/github/workflows/main.yml.tt b/lib/bundler/templates/newgem/github/workflows/main.yml.tt
new file mode 100644
index 0000000000..807c8dd79a
--- /dev/null
+++ b/lib/bundler/templates/newgem/github/workflows/main.yml.tt
@@ -0,0 +1,18 @@
+name: Ruby
+
+on: [push,pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: <%= RUBY_VERSION %>
+ - name: Run the default task
+ run: |
+ gem install bundler -v <%= Bundler::VERSION %>
+ bundle install
+ bundle exec rake