Skip to content

Commit 62fa97b

Browse files
committed
fix: clean up formatting in GitHub Actions workflow
1 parent abc9c77 commit 62fa97b

1 file changed

Lines changed: 39 additions & 36 deletions

File tree

.github/workflows/test.yml

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,52 @@ name: Test
22

33
on:
44
push:
5-
branches: [ main, master ]
5+
branches: [main, master]
66
pull_request:
7-
branches: [ main, master ]
7+
branches: [main, master]
8+
9+
env:
10+
HTMD_BUILD: true
811

912
jobs:
1013
test:
1114
name: Test
1215
runs-on: ubuntu-latest
1316
strategy:
1417
matrix:
15-
elixir: ['1.18']
16-
otp: ['27']
18+
elixir: ["1.18"]
19+
otp: ["27"]
1720

1821
steps:
19-
- uses: actions/checkout@v4
20-
21-
- name: Set up Elixir
22-
uses: erlef/setup-beam@v1
23-
with:
24-
elixir-version: ${{ matrix.elixir }}
25-
otp-version: ${{ matrix.otp }}
26-
27-
- name: Set up Rust
28-
uses: actions-rs/toolchain@v1
29-
with:
30-
toolchain: stable
31-
override: true
32-
33-
- name: Restore dependencies cache
34-
uses: actions/cache@v4
35-
with:
36-
path: deps
37-
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
38-
restore-keys: ${{ runner.os }}-mix-
39-
40-
- name: Install dependencies
41-
run: mix deps.get
42-
43-
- name: Compile
44-
run: mix compile --warnings-as-errors
45-
46-
- name: Run tests
47-
run: mix test
48-
49-
- name: Check formatting
50-
run: mix format --check-formatted
22+
- uses: actions/checkout@v4
23+
24+
- name: Set up Elixir
25+
uses: erlef/setup-beam@v1
26+
with:
27+
elixir-version: ${{ matrix.elixir }}
28+
otp-version: ${{ matrix.otp }}
29+
30+
- name: Set up Rust
31+
uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: stable
34+
override: true
35+
36+
- name: Restore dependencies cache
37+
uses: actions/cache@v4
38+
with:
39+
path: deps
40+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
41+
restore-keys: ${{ runner.os }}-mix-
42+
43+
- name: Install dependencies
44+
run: mix deps.get
45+
46+
- name: Compile
47+
run: mix compile --warnings-as-errors
48+
49+
- name: Run tests
50+
run: mix test
51+
52+
- name: Check formatting
53+
run: mix format --check-formatted

0 commit comments

Comments
 (0)