Skip to content

Commit fb88d3f

Browse files
committed
Update CI config
1 parent 8c2c08f commit fb88d3f

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/test.yaml

+12-16
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
on: push
1+
name: "provider"
2+
3+
on: [push, pull_request]
24

35
jobs:
46
test:
57
runs-on: ubuntu-latest
68

79
env:
8-
CACHE_VERSION: v1
10+
CACHE_VERSION: v2
11+
912
steps:
1013
- uses: actions/checkout@v2
1114

12-
- uses: erlef/setup-beam@v1
15+
- uses: erlef/setup-elixir@v1
1316
with:
1417
otp-version: 26.0
1518
elixir-version: 1.15.4
@@ -32,23 +35,16 @@ jobs:
3235
build-${{ env.CACHE_VERSION }}-${{ github.ref }}-
3336
build-${{ env.CACHE_VERSION }}-
3437
35-
- name: Fetch deps
36-
run: mix deps.get
38+
- run: mix deps.get
3739

3840
- name: Compile project
3941
run: |
4042
MIX_ENV=test mix compile --warnings-as-errors
4143
MIX_ENV=dev mix compile --warnings-as-errors
4244
MIX_ENV=prod mix compile --warnings-as-errors
4345
44-
- name: Run linter checks
45-
run: mix credo list
46-
47-
- name: Check code format
48-
run: mix format --check-formatted
49-
50-
- name: Run dialyzer
51-
run: mix dialyzer
52-
53-
- name: Run tests
54-
run: mix test
46+
- run: mix format --check-formatted
47+
- run: mix test
48+
- run: mix docs
49+
- run: MIX_ENV=test mix credo list
50+
- run: mix dialyzer

0 commit comments

Comments
 (0)