Clean actions steps, remove redundant ones
This commit is contained in:
parent
5ff45e0f00
commit
3841097428
|
@ -89,7 +89,6 @@ jobs:
|
||||||
libsqlite3-dev libwebp-dev libyaml-dev
|
libsqlite3-dev libwebp-dev libyaml-dev
|
||||||
|
|
||||||
- name: Prepare rebar
|
- name: Prepare rebar
|
||||||
id: rebar
|
|
||||||
run: |
|
run: |
|
||||||
echo '{xref_ignores, [{eldap_filter_yecc, return_error, 2}
|
echo '{xref_ignores, [{eldap_filter_yecc, return_error, 2}
|
||||||
]}.' >>rebar.config
|
]}.' >>rebar.config
|
||||||
|
@ -101,23 +100,18 @@ jobs:
|
||||||
mqtree, p1_acme, p1_mysql, p1_oauth2, p1_pgsql, p1_utils, pkix,
|
mqtree, p1_acme, p1_mysql, p1_oauth2, p1_pgsql, p1_utils, pkix,
|
||||||
sqlite3, stringprep, stun, xmpp, yconf]} ]}.' >>rebar.config
|
sqlite3, stringprep, stun, xmpp, yconf]} ]}.' >>rebar.config
|
||||||
echo '{ct_extra_params, "-verbosity 20"}.' >>rebar.config
|
echo '{ct_extra_params, "-verbosity 20"}.' >>rebar.config
|
||||||
|
echo "{ct_opts, [{verbosity, 20}, {keep_logs, 20}]}." >>rebar.config
|
||||||
|
|
||||||
- name: Cache rebar2
|
- name: Cache rebar
|
||||||
if: matrix.rebar == 2
|
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
deps/
|
deps/
|
||||||
dialyzer/
|
dialyzer/
|
||||||
ebin/
|
ebin/
|
||||||
|
~/.cache/rebar3/
|
||||||
key: ${{matrix.otp}}-${{matrix.rebar}}-${{hashFiles('rebar.config')}}
|
key: ${{matrix.otp}}-${{matrix.rebar}}-${{hashFiles('rebar.config')}}
|
||||||
|
|
||||||
- name: Cache rebar3
|
|
||||||
if: matrix.rebar == 3
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.cache/rebar3/
|
|
||||||
key: ${{matrix.otp}}-${{matrix.rebar}}-${{hashFiles('rebar.config')}}
|
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
|
@ -151,28 +145,13 @@ jobs:
|
||||||
grep -q 'TEST COMPLETE,.* 0 failed' logs/suite.log
|
grep -q 'TEST COMPLETE,.* 0 failed' logs/suite.log
|
||||||
test $(find logs/ -empty -name error.log)
|
test $(find logs/ -empty -name error.log)
|
||||||
|
|
||||||
- name: View dialyzer report
|
- name: View logs failures
|
||||||
run: cat logs/dialyzer.log
|
|
||||||
|
|
||||||
- name: View full suite.log
|
|
||||||
run: cat logs/suite.log
|
|
||||||
|
|
||||||
- name: View suite.log failures
|
|
||||||
if: failure()
|
if: failure()
|
||||||
run: cat logs/suite.log | awk
|
run: |
|
||||||
'BEGIN{RS="\n=case";FS="\n"} /=result\s*failed/ {print "=case" $0}'
|
cat logs/suite.log | awk \
|
||||||
|
'BEGIN{RS="\n=case";FS="\n"} /=result\s*failed/ {print "=case" $0}'
|
||||||
- name: View full ejabberd.log
|
find logs/ -name error.log -exec cat '{}' ';'
|
||||||
if: failure()
|
find logs/ -name exunit.log -exec cat '{}' ';'
|
||||||
run: find logs/ -name ejabberd.log -exec cat '{}' ';'
|
|
||||||
|
|
||||||
- name: View error.log
|
|
||||||
if: failure()
|
|
||||||
run: find logs/ -name error.log -exec cat '{}' ';'
|
|
||||||
|
|
||||||
- name: View exunit.log
|
|
||||||
if: failure()
|
|
||||||
run: find logs/ -name exunit.log -exec cat '{}' ';'
|
|
||||||
|
|
||||||
- name: Send to coveralls
|
- name: Send to coveralls
|
||||||
if: matrix.otp == 24
|
if: matrix.otp == 24
|
||||||
|
@ -218,21 +197,13 @@ jobs:
|
||||||
grep 'TEST COMPLETE' logs/suite.log
|
grep 'TEST COMPLETE' logs/suite.log
|
||||||
grep -q 'TEST COMPLETE,.* 0 failed' logs/suite.log
|
grep -q 'TEST COMPLETE,.* 0 failed' logs/suite.log
|
||||||
test $(find logs/ -empty -name error.log)
|
test $(find logs/ -empty -name error.log)
|
||||||
- name: View full suite.log
|
- name: View logs failures
|
||||||
run: cat logs/suite.log
|
|
||||||
- name: View suite.log failures
|
|
||||||
if: failure()
|
if: failure()
|
||||||
run: cat logs/suite.log | awk
|
run: |
|
||||||
'BEGIN{RS="\n=case";FS="\n"} /=result\s*failed/ {print "=case" $0}'
|
cat logs/suite.log | awk \
|
||||||
- name: View full ejabberd.log
|
'BEGIN{RS="\n=case";FS="\n"} /=result\s*failed/ {print "=case" $0}'
|
||||||
if: failure()
|
find logs/ -name error.log -exec cat '{}' ';'
|
||||||
run: find logs/ -name ejabberd.log -exec cat '{}' ';'
|
find logs/ -name exunit.log -exec cat '{}' ';'
|
||||||
- name: View error.log
|
|
||||||
if: failure()
|
|
||||||
run: find logs/ -name error.log -exec cat '{}' ';'
|
|
||||||
- name: View exunit.log
|
|
||||||
if: failure()
|
|
||||||
run: find logs/ -name exunit.log -exec cat '{}' ';'
|
|
||||||
|
|
||||||
binaries:
|
binaries:
|
||||||
name: Binaries
|
name: Binaries
|
||||||
|
|
Loading…
Reference in New Issue