Mention flat_map/2 in filtering cheatsheet #35
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: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
strategy: | |
matrix: | |
include: | |
- elixir: "1.14.1" | |
otp: "25.0" | |
- elixir: "1.15.7" | |
otp: "26.0" | |
- elixir: "1.16.0" | |
otp: "26.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- name: Install Dependencies | |
run: mix deps.get | |
- name: Check compile warnings | |
run: mix compile --warnings-as-errors | |
- name: Unit tests | |
run: mix test.unit | |
- name: Property-based tests | |
run: PROP_TEST_RUNTIME=30000 mix test.prop | |
format: | |
runs-on: ubuntu-latest | |
name: Format (Elixir ${{matrix.elixir}}) | |
strategy: | |
matrix: | |
include: | |
- elixir: "1.16" | |
otp: "26.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- name: Install Dependencies | |
run: mix deps.get | |
- name: Check format | |
run: mix format --check-formatted |