Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit60c18dd

Browse files
authored
test: Start test suite (ash-project#16)
1 parentf837b06 commit60c18dd

File tree

14 files changed

+440
-120
lines changed

14 files changed

+440
-120
lines changed

‎.github/workflows/elixir.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,19 @@ jobs:
1818
otp:["23", "22"]
1919
elixir:["1.10.0"]
2020
ash:["master", "1.12", "1.13"]
21+
pg_version:["9.5", "9.6", "11"]
2122
env:
2223
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
2324
ASH_VERSION:${{matrix.ash}}
25+
services:
26+
pg:
27+
image:postgres:${{ matrix.pg_version }}
28+
env:
29+
POSTGRES_USER:postgres
30+
POSTGRES_PASSWORD:postgres
31+
POSTGRES_DB:postgres
32+
options:--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
33+
ports:["5432:5432"]
2434
steps:
2535
-run:sudo apt-get install --yes erlang-dev
2636
-uses:actions/checkout@v2
@@ -41,6 +51,8 @@ jobs:
4151
key:otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-build-2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
4252
restore-keys:otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-build-2
4353
-run:mix deps.get
54+
-run:MIX_ENV=test mix ecto.create
55+
-run:MIX_ENV=test mix ecto.migrate
4456
-run:mix check --except dialyzer
4557
if:startsWith(github.ref, 'refs/tags/v')
4658
-run:mix check
@@ -53,8 +65,18 @@ jobs:
5365
matrix:
5466
otp:["23"]
5567
elixir:["1.10.0"]
68+
pg_version:["11"]
5669
env:
5770
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
71+
services:
72+
pg:
73+
image:postgres:${{ matrix.pg_version }}
74+
env:
75+
POSTGRES_USER:postgres
76+
POSTGRES_PASSWORD:postgres
77+
POSTGRES_DB:postgres
78+
options:--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
79+
ports:["5432:5432"]
5880
steps:
5981
-run:sudo apt-get install --yes erlang-dev
6082
-uses:actions/checkout@v2
@@ -69,6 +91,8 @@ jobs:
6991
key:otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
7092
restore-keys:otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-
7193
-run:mix deps.get
94+
-run:MIX_ENV=test mix ecto.create
95+
-run:MIX_ENV=test mix ecto.migrate
7296
-run:mix coveralls.github
7397
release:
7498
runs-on:ubuntu-latest

‎CHANGELOG.md‎

Lines changed: 36 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -7,249 +7,173 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
77

88
##[v0.19.0](https://github.com/ash-project/ash_postgres/compare/v0.18.0...v0.19.0) (2020-09-02)
99

10-
11-
12-
1310
###Features:
1411

15-
* support inner joins when possible (#15)
12+
- support inner joins when possible (#15)
1613

1714
###Bug Fixes:
1815

19-
* better support for aggregates/calculations when delegating
16+
- better support for aggregates/calculations when delegating
2017

21-
* don't fail w/ no extensions configured
18+
- don't fail w/ no extensions configured
2219

2320
##[v0.18.0](https://github.com/ash-project/ash_postgres/compare/v0.17.0...v0.18.0) (2020-08-26)
2421

25-
26-
27-
2822
###Features:
2923

30-
* update to ash 1.11 (#13)
24+
- update to ash 1.11 (#13)
3125

32-
* support Ash v1.10 (#12)
26+
- support Ash v1.10 (#12)
3327

34-
* support latest ash
28+
- support latest ash
3529

36-
* update to latest ash
30+
- update to latest ash
3731

3832
##[v0.17.0](https://github.com/ash-project/ash_postgres/compare/v0.16.1...v0.17.0) (2020-08-26)
3933

40-
41-
42-
4334
###Features:
4435

45-
* update to ash 1.11 (#13)
36+
- update to ash 1.11 (#13)
4637

47-
* support Ash v1.10 (#12)
38+
- support Ash v1.10 (#12)
4839

49-
* support latest ash
40+
- support latest ash
5041

51-
* update to latest ash
42+
- update to latest ash
5243

5344
##[v0.16.1](https://github.com/ash-project/ash_postgres/compare/v0.16.0...v0.16.1) (2020-08-19)
5445

55-
56-
57-
5846
###Bug Fixes:
5947

60-
* fix compile/dialyzer issues
48+
- fix compile/dialyzer issues
6149

6250
##[v0.16.0](https://github.com/ash-project/ash_postgres/compare/v0.15.0...v0.16.0) (2020-08-19)
6351

64-
65-
66-
6752
###Features:
6853

69-
* update to latest ash
54+
- update to latest ash
7055

71-
* update to latest version of ash
56+
- update to latest version of ash
7257

7358
##[v0.15.0](https://github.com/ash-project/ash_postgres/compare/v0.14.0...v0.15.0) (2020-08-18)
7459

75-
76-
77-
7860
###Features:
7961

80-
* update to latest version of ash
62+
- update to latest version of ash
8163

8264
##[v0.14.0](https://github.com/ash-project/ash_postgres/compare/v0.13.0...v0.14.0) (2020-08-17)
8365

84-
85-
86-
8766
###Features:
8867

89-
* support ash 1.7
68+
- support ash 1.7
9069

91-
* support named aggregates
70+
- support named aggregates
9271

9372
##[v0.13.0](https://github.com/ash-project/ash_postgres/compare/v0.12.1...v0.13.0) (2020-07-25)
9473

95-
96-
97-
9874
###Features:
9975

100-
* update to latest ash
76+
- update to latest ash
10177

102-
* support latest ash
78+
- support latest ash
10379

10480
##[v0.12.1](https://github.com/ash-project/ash_postgres/compare/v0.12.0...v0.12.1) (2020-07-24)
10581

106-
107-
108-
10982
###Bug Fixes:
11083

111-
* add can? for`:aggregate`
84+
- add can? for`:aggregate`
11285

11386
##[v0.12.0](https://github.com/ash-project/ash_postgres/compare/0.11.2...v0.12.0) (2020-07-24)
11487

115-
116-
117-
11888
###Features:
11989

120-
* update to latest ash
90+
- update to latest ash
12191

12292
##[v0.11.2](https://github.com/ash-project/ash_postgres/compare/0.11.1...v0.11.2) (2020-07-23)
12393

124-
125-
126-
12794
###Bug Fixes:
12895

129-
* typespecs, errant IO.inspect
130-
13196
##[v0.11.1](https://github.com/ash-project/ash_postgres/compare/0.11.0...v0.11.1) (2020-07-23)
13297

133-
134-
135-
13698
###Bug Fixes:
13799

138-
* typespecs, errant IO.inspect
139-
140100
##[v0.11.0](https://github.com/ash-project/ash_postgres/compare/0.10.0...v0.11.0) (2020-07-23)
141101

142-
143-
144-
145102
###Features:
146103

147-
* support ash 13.0 aggregates
104+
- support ash 13.0 aggregates
148105

149106
##[v0.10.0](https://github.com/ash-project/ash_postgres/compare/0.9.0...v0.10.0) (2020-07-15)
150107

151-
152-
153-
154108
###Features:
155109

156-
* update to latest ash
110+
- update to latest ash
157111

158112
##[v0.9.0](https://github.com/ash-project/ash_postgres/compare/0.8.0...v0.9.0) (2020-07-13)
159113

160-
161-
162-
163114
###Features:
164115

165-
* update to latest ash
116+
- update to latest ash
166117

167118
##[v0.8.0](https://github.com/ash-project/ash_postgres/compare/0.7.0...v0.8.0) (2020-07-09)
168119

169-
170-
171-
172120
###Features:
173121

174-
* update to latest ash
122+
- update to latest ash
175123

176124
##[v0.7.0](https://github.com/ash-project/ash_postgres/compare/0.6.0...v0.7.0) (2020-07-09)
177125

178-
179-
180-
181126
###Features:
182127

183-
* update to latest ash
128+
- update to latest ash
184129

185-
* update to latest ash, add docs
130+
- update to latest ash, add docs
186131

187-
* update to ash 0.9.1 for transactions
132+
- update to ash 0.9.1 for transactions
188133

189134
##[v0.6.0](https://github.com/ash-project/ash_postgres/compare/0.5.0...v0.6.0) (2020-06-29)
190135

191-
192-
193-
194136
###Features:
195137

196-
* update to latest ash
138+
- update to latest ash
197139

198140
##[v0.5.0](https://github.com/ash-project/ash_postgres/compare/0.4.0...v0.5.0) (2020-06-29)
199141

200-
201-
202-
203142
###Features:
204143

205-
* upgrade to latest ash
144+
- upgrade to latest ash
206145

207146
##[v0.4.0](https://github.com/ash-project/ash_postgres/compare/0.3.0...v0.4.0) (2020-06-27)
208147

209-
210-
211-
212148
###Features:
213149

214-
* update to latest ash
150+
- update to latest ash
215151

216152
##[v0.3.0](https://github.com/ash-project/ash_postgres/compare/0.2.1...v0.3.0) (2020-06-19)
217153

218-
219-
220-
221154
###Features:
222155

223-
* New filter style (#10)
156+
- New filter style (#10)
224157

225158
##[v0.2.1](https://github.com/ash-project/ash_postgres/compare/0.2.0...v0.2.1) (2020-06-15)
226159

227-
228-
229-
230160
###Bug Fixes:
231161

232-
* update .formatter.exs
162+
- update .formatter.exs
233163

234164
##[v0.2.0](https://github.com/ash-project/ash_postgres/compare/0.1.4...v0.2.0) (2020-06-14)
235165

236-
237-
238-
239166
###Features:
240167

241-
* use the new DSL builder for config (#7)
168+
- use the new DSL builder for config (#7)
242169

243170
##[v0.1.4](https://github.com/ash-project/ash_postgres/compare/0.1.3...v0.1.4) (2020-06-05)
244171

245-
246-
247-
248172
###Bug Fixes:
249173

250-
* update ash version dependency
174+
- update ash version dependency
251175

252-
* account for removal of name
176+
- account for removal of name
253177

254178
##[v0.1.3](https://github.com/ash-project/ash_postgres/compare/0.1.2...v0.1.3) (2020-06-03)
255179

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
55
[![Coverage Status](https://coveralls.io/repos/github/ash-project/ash_postgres/badge.svg?branch=master)](https://coveralls.io/github/ash-project/ash_postgres?branch=master)
66
[![Hex version badge](https://img.shields.io/hexpm/v/ash_postgres.svg)](https://hex.pm/packages/ash_postgres)
7+
8+
The documentation for ash_postgres is available on[hexdocs](https://hexdocs.pm/ash_postgres/AshPostgres.html)

‎config/config.exs‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,23 @@ if Mix.env() == :dev do
1313
manage_readme_version:"README.md",
1414
version_tag_prefix:"v"
1515
end
16+
17+
ifMix.env()==:testdo
18+
# Configure your database
19+
#
20+
21+
config:ash_postgres,AshPostgres.TestRepo,
22+
username:"postgres",
23+
database:"postgres",
24+
hostname:"localhost",
25+
pool:Ecto.Adapters.SQL.Sandbox
26+
27+
# sobelow_skip ["Config.Secrets"]
28+
config:ash_postgres,AshPostgres.TestRepo,password:"postgres"
29+
30+
config:ash_postgres,ecto_repos:[AshPostgres.TestRepo]
31+
32+
config:ash_postgres,AshPostgres.TestRepo,migration_primary_key:[name::id,type::binary_id]
33+
34+
config:logger,level::warn
35+
end

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp