Skip to content

Commit

Permalink
Use shared GitHub Actions workflow for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmag committed Jan 18, 2023
1 parent b1c8a3d commit b19b910
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,9 @@ on:
pull_request:

jobs:
format:
name: Code linting
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Set up Elixir environment
uses: erlef/setup-beam@v1
with:
otp-version: 24
elixir-version: 1.13

- name: Check unused dependencies
run: mix deps.get && mix deps.unlock --check-unused

- name: Check formatting
run: mix format --check-formatted

- name: Check compilation warnings
run: mix compile --warnings-as-errors
lint:
name: Lint
uses: lexmag/elixir-actions/.github/workflows/lint.yml@v1

test:
name: Test suite
Expand Down

0 comments on commit b19b910

Please sign in to comment.