-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (43 loc) · 1.46 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
name: OTP ${{matrix.otp}}
strategy:
matrix:
otp: ['26.1', '25.3', '24.3', '23.3', '22.3', '21.3']
runs-on: 'ubuntu-22.04'
env:
OTPVER: ${{ matrix.otp }}
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
- name: Restore _build
uses: actions/cache@v3
with:
path: _build
key: _build-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
- name: Restore rebar3's cache
uses: actions/cache@v3
with:
path: ~/.cache/rebar3
key: rebar3-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
- run: rebar3 as test get-deps
- run: rebar3 as test compile
- run: rebar3 as test dialyzer
if: ${{ matrix.otp == '26.1' }}
- run: rebar3 as test codecov analyze
if: ${{ matrix.otp == '26.1' }}
- run: gcov -o c_src fast_pbkdf2
if: ${{ matrix.otp == '26.1' }}
- run: pip install --user codecov
if: ${{ matrix.otp == '26.1' }}
- run: /home/runner/.local/bin/codecov
if: ${{ matrix.otp == '26.1' }}