Skip to content

Add GitHub Actions security scanning with CodeQL and zizmor #97

Add GitHub Actions security scanning with CodeQL and zizmor

Add GitHub Actions security scanning with CodeQL and zizmor #97

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
include:
- erlang: "24.1.7"
elixir: "1.13.0"
lint: true
big: true
- erlang: "24.1.7"
elixir: "1.12.3"
- erlang: "23.3.4"
elixir: "1.11.4"
- erlang: "23.3.4"
elixir: "1.10.4"
- erlang: "22.3.4"
elixir: "1.9.4"
- erlang: "22.3.4"
elixir: "1.8.2"
- erlang: "21.3.8"
elixir: "1.7.4"
- erlang: "20.3.8"
elixir: "1.6.6"
- erlang: "19.3.6"
elixir: "1.5.3"
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
with:
persist-credentials: false
- name: Install OTP and Elixir
uses: erlef/setup-elixir@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1.23.0
with:
otp-version: ${{matrix.erlang}}
elixir-version: ${{matrix.elixir}}
- name: Install dependencies
run: mix deps.get
- name: Check for unused dependencies
run: mix deps.unlock --check-unused
if: ${{matrix.lint}}
- name: Compile with --warnings-as-errors
run: mix compile --warnings-as-errors
if: ${{matrix.lint}}
- name: Check mix format
run: mix format --check-formatted
if: ${{matrix.lint}}
- name: Run tests
run: mix test
if: ${{!matrix.big}}
- name: Run tests
run: mix test
if: ${{matrix.big}}
env:
MAX_RUNS: "50000"