✨ timetable redesign #90
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: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
static_code: | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ">24" | |
elixir-version: "1.17.2" | |
- name: Retrieve Cached Dependencies | |
uses: actions/cache@v3 | |
id: mix-cache | |
with: | |
path: | | |
deps | |
_build | |
priv/plts | |
key: ${{ runner.os }}-${{ inputs.otp }}-${{ inputs.elixir }}-${{ hashFiles('mix.lock') }} | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Run Credo | |
run: mix credo --ignore design | |
- name: Run Sobelow | |
run: mix sobelow | |
- name: Audit deps | |
run: mix deps.Audit | |
- name: Audit Hex deps | |
run: mix hex.Audit |