44 # Run when pushing to stable branches
55 push :
66 branches :
7- - ' master'
8- - ' release-*'
7+ - " master"
8+ - " release-*"
99 # Run on branch/tag creation
1010 create :
1111 # Run on pull requests
@@ -22,36 +22,36 @@ jobs:
2222 env :
2323 MIX_ENV : ci
2424 steps :
25- - uses : actions/checkout@v2
26- - uses : actions/cache@v1
27- with :
28- path : deps
29- key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
30- - uses : actions/cache@v1
31- with :
32- path : _build
33- key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}-${{ github.sha }}
34- restore-keys : |
35- ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
36- - id : plt_cache
37- uses : actions/cache@v1
38- with :
39- path : dialyzer_cache
40- key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-dialyzer_cache-${{ github.sha }}
41- restore-keys : |
42- ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-dialyzer_cache-
43- - uses : erlef/setup-beam@v1.15
44- with :
45- otp-version : ${{ env.otp_version }}
46- elixir-version : ${{ env.elixir_version }}
47- - name : Install Dependencies
48- run : mix deps.get
49- - name : Create PLTs dir
50- if : ${{steps.plt_cache.outputs.cache-hit != 'true'}}
51- run : mkdir -p dialyzer_cache && mix dialyzer --plt
52- - name : Run dialyzer
53- # FIXME: This should be set to fail when dialyzer issues are fixed
54- run : mix dialyzer || exit 0
25+ - uses : actions/checkout@v5
26+ - uses : actions/cache@v4
27+ with :
28+ path : deps
29+ key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
30+ - uses : actions/cache@v4
31+ with :
32+ path : _build
33+ key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}-${{ github.sha }}
34+ restore-keys : |
35+ ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
36+ - id : plt_cache
37+ uses : actions/cache@v4
38+ with :
39+ path : dialyzer_cache
40+ key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-dialyzer_cache-${{ github.sha }}
41+ restore-keys : |
42+ ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-dialyzer_cache-
43+ - uses : erlef/setup-beam@v1.20
44+ with :
45+ otp-version : ${{ env.otp_version }}
46+ elixir-version : ${{ env.elixir_version }}
47+ - name : Install Dependencies
48+ run : mix deps.get
49+ - name : Create PLTs dir
50+ if : ${{steps.plt_cache.outputs.cache-hit != 'true'}}
51+ run : mkdir -p dialyzer_cache && mix dialyzer --plt
52+ - name : Run dialyzer
53+ # FIXME: This should be set to fail when dialyzer issues are fixed
54+ run : mix dialyzer || exit 0
5555
5656 test-coverage :
5757 name : Build and Test
@@ -62,42 +62,42 @@ jobs:
6262 strategy :
6363 matrix :
6464 rabbitmq :
65- - " rabbitmq:3.12.0-management"
65+ - " rabbitmq:3.12.0-management"
6666 services :
6767 rabbitmq :
6868 image : ${{ matrix.rabbitmq }}
6969 ports :
70- - 5672:5672
71- - 15672:15672
70+ - 5672:5672
71+ - 15672:15672
7272 env :
7373 MIX_ENV : test
7474 RABBITMQ_HOST : localhost
7575 steps :
76- - uses : actions/checkout@v2
77- - uses : actions/cache@v1
78- with :
79- path : deps
80- key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
81- - uses : actions/cache@v1
82- with :
83- path : _build
84- key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}-${{ github.sha }}
85- restore-keys : |
86- ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
87- - uses : erlef/setup-beam@v1.15
88- with :
89- otp-version : ${{ env.otp_version }}
90- elixir-version : ${{ env.elixir_version }}
91- - name : Install Dependencies
92- run : mix deps.get
93- - name : Check formatting
94- run : mix format --check-formatted
95- - name : Compile
96- run : mix compile
97- - name : Test and Coverage
98- run : mix coveralls.json --exclude wip -o coverage_results
99- - name : Upload Coverage Results to CodeCov
100- env :
101- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
102- run : |
103- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
76+ - uses : actions/checkout@v5
77+ - uses : actions/cache@v4
78+ with :
79+ path : deps
80+ key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
81+ - uses : actions/cache@v4
82+ with :
83+ path : _build
84+ key : ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}-${{ github.sha }}
85+ restore-keys : |
86+ ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
87+ - uses : erlef/setup-beam@v1.20
88+ with :
89+ otp-version : ${{ env.otp_version }}
90+ elixir-version : ${{ env.elixir_version }}
91+ - name : Install Dependencies
92+ run : mix deps.get
93+ - name : Check formatting
94+ run : mix format --check-formatted
95+ - name : Compile
96+ run : mix compile
97+ - name : Test and Coverage
98+ run : mix coveralls.json --exclude wip -o coverage_results
99+ - name : Upload Coverage Results to CodeCov
100+ env :
101+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
102+ run : |
103+ bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
0 commit comments