Skip to content

Commit b19b910

Browse files
committed
Use shared GitHub Actions workflow for linting
1 parent b1c8a3d commit b19b910

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,9 @@ on:
77
pull_request:
88

99
jobs:
10-
format:
11-
name: Code linting
12-
runs-on: ubuntu-20.04
13-
14-
steps:
15-
- uses: actions/checkout@v2
16-
17-
- name: Set up Elixir environment
18-
uses: erlef/setup-beam@v1
19-
with:
20-
otp-version: 24
21-
elixir-version: 1.13
22-
23-
- name: Check unused dependencies
24-
run: mix deps.get && mix deps.unlock --check-unused
25-
26-
- name: Check formatting
27-
run: mix format --check-formatted
28-
29-
- name: Check compilation warnings
30-
run: mix compile --warnings-as-errors
10+
lint:
11+
name: Lint
12+
uses: lexmag/elixir-actions/.github/workflows/lint.yml@v1
3113

3214
test:
3315
name: Test suite

0 commit comments

Comments
 (0)