-
Notifications
You must be signed in to change notification settings - Fork 19
53 lines (44 loc) · 1.25 KB
/
mutation_testing.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
46
47
48
49
50
51
52
53
name: Mutation testing
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches: [ "**" ]
jobs:
build:
runs-on: ubuntu-20.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.14.1
otp: 25.1
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 30
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
- name: Install protoc
run: |
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-linux-x86_64.zip
unzip -d protoc protoc-21.4-linux-x86_64.zip
echo "${PWD}/protoc/bin" >> $GITHUB_PATH
- name: Run mutation testing
env:
PROTOX_MUZAK_PRO_CREDS: ${{ secrets.PROTOX_MUZAK_PRO_CREDS }}
MIX_ENV: test
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix muzak --profile ci