Skip to content

Commit 0ac2822

Browse files
committed
feat: enable all tests
1 parent a62542d commit 0ac2822

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,21 @@ on:
44
branches:
55
- master
66
pull_request:
7+
types: [opened, reopened, synchronize]
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
710

811
jobs:
12+
# Since the name of the matrix job depends on the version, we define another job with a more stable name.
13+
test_results:
14+
if: ${{ always() }}
15+
runs-on: ubuntu-latest
16+
name: Test Results
17+
needs: [test-ubuntu-ruby]
18+
steps:
19+
- run: |
20+
result="${{ needs.test.result }}"
21+
exit [[ $result == "success" || $result == "skipped" ]]
922
test-ubuntu-ruby:
1023
runs-on: ubuntu-latest
1124
services:
@@ -27,8 +40,8 @@ jobs:
2740
strategy:
2841
fail-fast: false
2942
matrix:
30-
# ruby-lang.org/en/downloads/branches
31-
ruby: [ruby-head, "3.3", "3.2", "3.1"]
43+
# https://ruby-lang.org/en/downloads/branches
44+
ruby: ["3.3", "3.2", "3.1"]
3245
# https://www.postgresql.org/support/versioning/
3346
pg: [12-master, 13-master, 14-master, 15-master, 16-master]
3447
steps:
@@ -49,4 +62,5 @@ jobs:
4962
run: bundle exec rake test
5063
env:
5164
PGHOST: localhost
65+
PGUSER: postgres
5266
PGPASSWORD: postgres

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require "rake/testtask"
33
require_relative "test/rake_helper"
44

55
task default: [:test]
6-
task test: "test:postgis"
6+
task test: "test:all"
77

88
Rake::TestTask.new(:test_postgis) do |t|
99
t.libs << postgis_test_load_paths

0 commit comments

Comments
 (0)