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

Commit32afbf1

Browse files
authored
chore: only run coverage once (ash-project#14)
1 parented0f302 commit32afbf1

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

‎.check.exs‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
## ...or adjusted (e.g. use one-line formatter for more compact credo output)
1212
# {:credo, "mix credo --format oneline"},
1313

14-
{:ex_unit,
15-
command:
16-
ifSystem.get_env("ASH_CI")=="true"do
17-
"mix coveralls.github"
18-
else
19-
"mix test"
20-
end},
2114
{:check_formatter,command:"mix ash.formatter --check"}
2215
## custom new tools may be added (mix tasks or arbitrary commands)
2316
# {:my_mix_task, command: "mix release", env: %{"MIX_ENV" => "prod"}},

‎.github/workflows/elixir.yml‎

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
ash:["master", "1.10"]
2121
env:
2222
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
23-
ASH_CI:true
2423
ASH_VERSION:${{matrix.ash}}
2524
steps:
2625
-run:sudo apt-get install --yes erlang-dev
@@ -46,6 +45,31 @@ jobs:
4645
if:startsWith(github.ref, 'refs/tags/v')
4746
-run:mix check
4847
if:"!startsWith(github.ref, 'refs/tags/v')"
48+
coverage:
49+
needs:[build]
50+
runs-on:ubuntu-latest
51+
name:Report Test Coverage
52+
strategy:
53+
matrix:
54+
otp:["23"]
55+
elixir:["1.10.0"]
56+
env:
57+
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
58+
steps:
59+
-run:sudo apt-get install --yes erlang-dev
60+
-uses:actions/checkout@v2
61+
-uses:actions/setup-elixir@v1
62+
with:
63+
otp-version:${{matrix.otp}}
64+
elixir-version:${{matrix.elixir}}
65+
-uses:actions/cache@v1
66+
id:cache-deps
67+
with:
68+
path:deps
69+
key:otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
70+
restore-keys:otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-
71+
-run:mix deps.get
72+
-run:mix coveralls.github
4973
release:
5074
runs-on:ubuntu-latest
5175
if:startsWith(github.ref, 'refs/tags/v')
@@ -57,7 +81,6 @@ jobs:
5781
elixir:["1.10.0"]
5882
env:
5983
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
60-
ASH_CI:true
6184
steps:
6285
-run:sudo apt-get install --yes erlang-dev
6386
-uses:actions/checkout@v2

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp