Feat/relatorio mensal #204
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: lint | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
strategy: | |
matrix: | |
elixir: [1.14.2] | |
otp: [25.1.2.1] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.client_payload.sha }} | |
- name: Setup | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Retrieve Cached Dependencies | |
uses: actions/cache@v3 | |
id: mix-cache | |
env: | |
cache-name: mix-cache | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-mix-${{ env.cache-name }} | |
- run: mix deps.get | |
- name: Run Formater | |
run: mix format --check-formatted | |
static_code_analysis: | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
strategy: | |
matrix: | |
elixir: [1.14.2] | |
otp: [25.1.2.1] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.client_payload.sha }} | |
- name: Setup | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Retrieve Cached Dependencies | |
uses: actions/cache@v3 | |
id: mix-cache | |
env: | |
cache-name: mix-cache | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-mix-${{ env.cache-name }} | |
- run: mix deps.get | |
- name: Run Credo | |
run: mix credo --strict |