Bump phoenix_live_dashboard from 0.8.4 to 0.8.5 in /backend #291
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: Backend CI | |
on: | |
push: | |
paths: | |
- "backend/**" | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "backend/**" | |
branches: | |
- main | |
permissions: | |
contents: read | |
defaults: | |
run: | |
working-directory: backend | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: "1.16.1" | |
otp-version: "26.2.2" | |
- name: Retrieve Mix Dependencies Cache | |
uses: actions/cache@v3 | |
id: mix-cache | |
with: | |
path: backend/deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
- name: Install Mix Dependencies | |
if: steps.mix-cache.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p deps | |
mix deps.get | |
- name: Check format | |
run: mix format --check-formatted | |
- name: Check compile warnings | |
run: mix compile --warnings-as-errors | |
- name: Run tests | |
run: mix test | |
- name: Retrieve PLT Cache | |
uses: actions/cache@v3 | |
id: plt-cache | |
with: | |
path: backend/priv/plts | |
key: ${{ runner.os }}-plts-${{ hashFiles('**/mix.lock') }} | |
- name: Create PLTs | |
if: steps.plt-cache.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p priv/plts | |
mix dialyzer --plt | |
- name: Run dialyzer | |
run: mix dialyzer --no-check |