diff --git a/.github/workflows/freeagent-gem.yml b/.github/workflows/freeagent-gem.yml index 45a7cfe..bf16665 100644 --- a/.github/workflows/freeagent-gem.yml +++ b/.github/workflows/freeagent-gem.yml @@ -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: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..4378d84 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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