Skip to content

Commit

Permalink
Merge pull request #47 from fac/release-no-version-change-only
Browse files Browse the repository at this point in the history
Separate release and test actions
  • Loading branch information
DuncSmith authored Jul 10, 2024
2 parents 1de8bbf + 83ac280 commit d5789a6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/freeagent-gem.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
name: FreeAgent Gem
name: Release Gem

on:
push:
branches: [master]
pull_request:
branches:
- master
paths:
- "lib/hermod/version.rb"

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Test
run: bundle exec rake

release:
needs: tests
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest

permissions:
Expand All @@ -33,4 +21,7 @@ jobs:
with:
bundler-cache: true

- name: Test
run: bundle exec rake

- uses: rubygems/release-gem@v1
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Run Tests

on:
pull_request:

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Test
run: bundle exec rake

0 comments on commit d5789a6

Please sign in to comment.