Skip to content

Commit

Permalink
Apply our CI best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jan 12, 2024
1 parent d44ba42 commit 34a9c02
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
name: Release

on:
create:
ref_type: tag
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
if: github.repository == 'voxpupuli/beaker-openstack'
if: github.repository_owner == 'voxpupuli'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
env:
BUNDLE_WITHOUT: release
BUNDLE_WITHOUT: release:development
- name: Build gem
run: gem build *.gemspec
run: gem build --strict --verbose *.gemspec
- name: Publish gem to rubygems.org
run: gem push *.gem
env:
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Test

on:
- pull_request
- push
pull_request: {}
push:
branches:
- master

jobs:
test:
Expand All @@ -22,5 +24,14 @@ jobs:
bundler-cache: true
env:
BUNDLE_WITHOUT: release
- name: Build gem
run: gem build --verbose *.gemspec
- name: Run tests
run: bundle exec rake spec
tests:
needs:
- test
runs-on: ubuntu-latest
name: Test suite
steps:
- run: echo Test suite completed

0 comments on commit 34a9c02

Please sign in to comment.