66 MIX_ENV : test
77
88jobs :
9- elixir_js_and_lint :
9+ assets :
1010 runs-on : ubuntu-20.04
1111 strategy :
1212 matrix :
@@ -29,35 +29,24 @@ jobs:
2929 key : ${{ runner.os }}-node-${{ hashFiles('asssets/package-lock.json') }}
3030
3131 - run : npm ci --prefix assets
32+ - run : npm run build --prefix assets
3233
3334 # Setup Elixir
3435 - uses : erlef/setup-beam@v1
3536 with :
3637 otp-version : ${{ matrix.otp }}
3738 elixir-version : ${{ matrix.elixir }}
3839
39- - run : mix deps.get
40-
4140 # Generate and upload artifacts
4241 - name : Generate docs
43- run : |
44- mix build
45- test -f doc/index.html && echo "doc/index.html exists."
46- test -f doc/ExDoc.epub && echo "doc/ExDoc.epub exists."
42+ run : test/prerelease.sh
4743
4844 - name : Upload docs
4945 uses : actions/upload-artifact@v4
5046 id : docs-upload
5147 with :
5248 name : docs
53- path : doc/
54-
55- # Test Elixir
56- - run : mix format --check-formatted
57- - run : mix deps.unlock --check-unused
58- - run : mix compile --force --warnings-as-errors
59- - run : mix test
60- - run : test/prerelease.sh
49+ path : test/tmp/contents/doc/
6150
6251 # Test JS
6352 - run : npm run lint --prefix assets
8877 # Test Erlang without -doc attribute support
8978 - elixir : " 1.16"
9079 otp : " 26"
80+ # Test Erlang with -doc attribute support
81+ - elixir : " 1.17"
82+ otp : " 27"
83+ lint : true
9184 steps :
9285 - uses : actions/checkout@v3
9386
9790 elixir-version : ${{ matrix.elixir }}
9891
9992 - run : mix deps.get
93+
94+ - run : mix compile --warnings-as-errors
95+ if : ${{ matrix.lint }}
96+
10097 - run : mix test
101- - run : test/prerelease.sh
98+
99+ - run : mix deps.unlock --check-unused
100+ if : ${{ matrix.lint }}
101+
102+ - run : mix format --check-formatted
103+ if : ${{ matrix.lint }}
0 commit comments