Revert "Revert "Break up get_svg
func, clean up specs""
#51
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: Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_call: | |
jobs: | |
mix-tests: | |
name: Mix tests | |
runs-on: ubuntu-latest | |
env: | |
ImageOS: ubuntu22 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Elixir | |
uses: erlef/setup-elixir@v1 | |
with: | |
otp-version: 26 | |
elixir-version: 1.15 | |
rebar3-version: 3.22 | |
- name: Check formatting | |
run: mix format --check-formatted | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install Dependencies | |
run: mix deps.get --only test --verbose | |
- name: Run unit tests | |
run: mix test | |
env: | |
MIX_ENV: test |