This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
Automated: Add Semgrep github action #7
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: Test suite | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
strategy: | |
matrix: | |
include: | |
- pair: | |
elixir: '1.7' | |
otp: '20.3' | |
- pair: | |
elixir: '1.11' | |
otp: '23.2' | |
check_format: true | |
name: elixir-${{ matrix.pair.elixir }}-otp-${{ matrix.pair.otp }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-elixir@v1 | |
with: | |
otp-version: ${{matrix.pair.otp}} | |
elixir-version: ${{matrix.pair.elixir}} | |
- name: Install Dependencies | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get --only test | |
- name: Check format | |
if: matrix.check_format | |
run: mix format --check-formatted | |
- name: Run Tests | |
run: mix test |