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

Commit4d270b3

Browse files
chore: Add ASH_VERSION env var. Add ash version to CI matrix. (ash-project#11)
1 parentee577f2 commit4d270b3

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

‎.github/workflows/elixir.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ on:
1111
jobs:
1212
build:
1313
runs-on:ubuntu-latest
14-
name:OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
14+
name:OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} / Ash ${{matrix.ash}}
1515
strategy:
16+
fail-fast:false
1617
matrix:
17-
otp:["23"]
18+
otp:["23", "22"]
1819
elixir:["1.10.0"]
20+
ash:["master", "1.9", "1.8"]
1921
env:
2022
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
2123
ASH_CI:true
24+
ASH_VERSION:${{matrix.ash}}
2225
steps:
2326
-run:sudo apt-get install --yes erlang-dev
2427
-uses:actions/checkout@v2
@@ -63,5 +66,3 @@ jobs:
6366
consumer-secret:${{ secrets.TWITTER_CONSUMER_API_SECRET }}
6467
access-token:${{ secrets.TWITTER_ACCESS_TOKEN }}
6568
access-token-secret:${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
66-
67-

‎mix.exs‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ defmodule AshPostgres.MixProject do
6161
[
6262
{:ecto_sql,"~> 3.4"},
6363
{:postgrex,">= 0.0.0"},
64-
{:ash,"~> 1.9"},
64+
{:ash,ash_version("~> 1.9")},
6565
{:git_ops,"~> 2.0.1",only::dev},
6666
{:ex_doc,"~> 0.22",only::dev,runtime:false},
6767
{:ex_check,"~> 0.11.0",only::dev},
@@ -72,6 +72,15 @@ defmodule AshPostgres.MixProject do
7272
]
7373
end
7474

75+
defpash_version(default_version)do
76+
caseSystem.get_env("ASH_VERSION")do
77+
nil->default_version
78+
"local"->[path:"../ash"]
79+
"master"->[git:"https://github.com/ash-project/ash.git"]
80+
version->"~>#{version}"
81+
end
82+
end
83+
7584
defpaliasesdo
7685
[
7786
sobelow:"sobelow --skip",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp