Fix Github Actions and use PropEr github revision #170
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.pair.elixir }} OTP ${{ matrix.pair.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.pair.elixir }} OTP ${{ matrix.pair.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 |