Skip to content

Fix Github Actions and use PropEr github revision #168

Fix Github Actions and use PropEr github revision

Fix Github Actions and use PropEr github revision #168

Workflow file for this run

name: Elixir CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
MIX_ENV: test
ELIXIR_ASSERT_TIMEOUT: 2000
jobs:
lint:
# WARNING:
# Changing the naming pattern requires changes in the branch protection
# at GitHub, the name of jobs are referenced there!
name: lint (Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }})
runs-on: ubuntu-22.04
strategy:
matrix:
pair:
- { erlang: "26", elixir: "1.15", latest: true }
steps:
- uses: erlef/setup-beam@v1
with:
otp-version: "26"
elixir-version: "1.15"
- uses: actions/checkout@v3
- name: Install Dependencies
run: mix do deps.get, deps.compile
- name: Run Lint
run: mix lint
- name: Check formatting
run: mix format --check-formatted
test:
# WARNING:
# Changing the naming pattern requires changes in the branch protection
# at GitHub, the name of jobs are referenced there!
name: test (Elixir ${{ matrix.elixir }} OTP ${{ matrix.erlang }})
runs-on: ubuntu-22.04
strategy:
matrix:
pair:
- { erlang: "26", elixir: "1.15", latest: true }
- { erlang: "26", elixir: "1.14" }
- { erlang: "25", elixir: "1.14" }
- { erlang: "24", elixir: "1.13" }
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
deps
_build
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-mix-
- name: Install Erlang/Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.erlang}}
elixir-version: ${{matrix.pair.elixir}}
- name: Install Dependencies
run: mix do deps.get, deps.compile
- name: Compile PropCheck
run: mix compile --warnings-as-errors
- name: Run Tests
run: PROPCHECK_DEBUG=1 PROPCHECK_VERBOSE=1 PROPCHECK_NUMTESTS=200 PROPCHECK_SEARCH_STEPS=1000 mix tests --cover --trace