Skip to content

Commit

Permalink
Seperate release and test actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DuncSmith committed Jul 10, 2024
1 parent 31e0eab commit d31ec41
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
22 changes: 5 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 Down
20 changes: 20 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run Tests

on:
pull_request:
push:
branches:
- master

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 d31ec41

Please sign in to comment.