Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fxsobr committed Jan 18, 2024
1 parent b2c0cb4 commit 161d88d
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/formater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,28 @@ name: Verify Format
on: pull_request

jobs:
runs-on: ubuntu-latest
strategy:
matrix:
elixir: [1.14.3]
otp: [25]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- uses: actions/cache@v1
id: mix-cache-format
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install Mix Dependencies
if: steps.mix-cache-format.outputs.cache-hit != 'true'
run: mix deps.get
- name ==> FORMAT
run: mix format --check-formatted
check-format:
name: Check Format
runs-on: ubuntu-latest
strategy:
matrix:
elixir: [1.14.3]
otp: [25]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- uses: actions/cache@v1
id: mix-cache-format
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install Mix Dependencies
if: steps.mix-cache-format.outputs.cache-hit != 'true'
run: mix deps.get
- name ==> FORMAT
run: mix format --check-formatted


0 comments on commit 161d88d

Please sign in to comment.