Progress component migration (#44) #108
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: Phoenix.UI CI | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
concurrency: | |
group: ci-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
elixir_tests: | |
name: Elixir Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
elixir: [1.14.1] | |
otp: [25.0.2] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Elixir | |
uses: erlef/setup-elixir@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Restore dependencies cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
_build | |
deps | |
priv/plts/ | |
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('mix.lock') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Mix Formatter | |
run: mix format --check-formatted | |
- name: Check for compiler warnings | |
run: mix compile --warnings-as-errors | |
- name: Credo strict checks | |
run: mix credo --strict | |
- name: Run tests | |
run: mix test --trace --slowest 10 | |
- name: Doctor documentation checks | |
run: mix doctor | |
- name: Dialyzer checks | |
run: mix dialyzer |