Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 44 additions & 5 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
test:
name: RSpec (Ruby ${{ matrix.ruby-version }})
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -29,9 +37,40 @@ jobs:
bundler-cache: true

- name: Run RSpec tests
run: |
bundle exec rspec
run: bundle exec rspec

rubocop:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
name: RuboCop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Use Ruby 3.4
uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1.295.0
with:
ruby-version: 3.4
bundler: 4.0.13
bundler-cache: true

- name: Run RuboCop
run: bundle exec rubocop

gem-build:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
name: Gem build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Use Ruby 3.4
uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1.295.0
with:
ruby-version: 3.4
bundler: 4.0.13
bundler-cache: true

- name: Build posthog-ruby gem
run: gem build posthog-ruby.gemspec

- name: Run Rubocop
run: |
bundle exec rubocop
- name: Build posthog-rails gem
run: gem build posthog-rails.gemspec
working-directory: posthog-rails
Loading