Update dependency phoenix_html to v4 #103
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: | |
- main | |
paths-ignore: | |
- '*.md' | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
env: | |
MIX_ENV: test | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '26.x' | |
elixir-version: '1.15.x' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache mix dependencies | |
uses: actions/cache@v3 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | |
restore-keys: | | |
${{ runner.os }}-mix- | |
- name: Cache _build | |
uses: actions/cache@v3 | |
with: | |
path: _build | |
key: ${{ runner.os }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
- name: Download dependencies | |
run: mix setup | |
- name: Compile dependencies | |
run: mix deps.compile | |
- name: Check Formatting | |
run: mix format --check-formatted | |
- name: Lint | |
run: mix credo --strict | |
- name: Compile assets (needed for feature tests) | |
run: mix compile_assets | |
- name: Run feature tests | |
run: mix test --trace | |
- name: Extract branch name (push) | |
if: github.event_name == 'push' | |
run: echo "ARGOS_BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV | |
- name: Extract branch name (pull request) | |
if: github.event_name == 'pull_request' | |
run: echo "ARGOS_BRANCH=$(echo ${GITHUB_HEAD_REF})" >> $GITHUB_ENV | |
- name: Upload screenshots to Argos | |
run: ./assets/node_modules/.bin/argos upload test/screenshots | |
env: | |
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }} | |
ARGOS_COMMIT: ${{ github.sha }} |