Skip to content

Commit

Permalink
feat: enable all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonOmo committed Sep 4, 2024
1 parent a62542d commit 0ac2822
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@ on:
branches:
- master
pull_request:
types: [opened, reopened, synchronize]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# Since the name of the matrix job depends on the version, we define another job with a more stable name.
test_results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Test Results
needs: [test-ubuntu-ruby]
steps:
- run: |
result="${{ needs.test.result }}"
exit [[ $result == "success" || $result == "skipped" ]]
test-ubuntu-ruby:
runs-on: ubuntu-latest
services:
Expand All @@ -27,8 +40,8 @@ jobs:
strategy:
fail-fast: false
matrix:
# ruby-lang.org/en/downloads/branches
ruby: [ruby-head, "3.3", "3.2", "3.1"]
# https://ruby-lang.org/en/downloads/branches
ruby: ["3.3", "3.2", "3.1"]
# https://www.postgresql.org/support/versioning/
pg: [12-master, 13-master, 14-master, 15-master, 16-master]
steps:
Expand All @@ -49,4 +62,5 @@ jobs:
run: bundle exec rake test
env:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "rake/testtask"
require_relative "test/rake_helper"

task default: [:test]
task test: "test:postgis"
task test: "test:all"

Rake::TestTask.new(:test_postgis) do |t|
t.libs << postgis_test_load_paths
Expand Down

0 comments on commit 0ac2822

Please sign in to comment.