Skip to content

Commit 3ed951c

Browse files
committed
ci: improve workflows
1 parent 04c3184 commit 3ed951c

File tree

5 files changed

+37
-32
lines changed

5 files changed

+37
-32
lines changed

.github/workflows/style.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
branches: [main]
66
types: [opened, synchronize]
7+
paths:
8+
- '**/*.ex'
9+
- '**/*.exs'
10+
- '**/*.html.heex'
711

812
jobs:
913
style:

.github/workflows/test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@ name: Build and Test
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- '**/*.ex'
8+
- '**/*.exs'
9+
- '**/*.html.heex'
610
pull_request:
711
branches: [main]
812
types: [opened, synchronize]
13+
paths:
14+
- '**/*.ex'
15+
- '**/*.exs'
16+
- '**/*.html.heex'
917

1018
jobs:
1119
build:

lib/mix/tasks/convert.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ defmodule Mix.Tasks.Convert do
55
"""
66
use Mix.Task
77

8+
alias CesiumLink.Links.Link
89
alias CesiumLink.Redirects.Redirect
910
alias CesiumLink.Repo
10-
alias CesiumLink.Links.Link
1111

1212
def run(files) do
1313
case length(files) do

mix.exs

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ defmodule CesiumLink.MixProject do
9999
"tailwind cesium_link --minify",
100100
"esbuild cesium_link --minify",
101101
"phx.digest"
102-
]
102+
],
103+
lint: ["credo -C default"]
103104
]
104105
end
105106
end

0 commit comments

Comments
 (0)