Skip to content

Commit edfc36c

Browse files
committed
Update formatter action
1 parent 10c95b1 commit edfc36c

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

.github/workflows/FormatCheck.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
1-
name: FormatCheck
1+
name: "Format Check"
22

33
on:
44
push:
55
branches:
6+
- 'main'
67
- 'master'
78
tags: '*'
89
pull_request:
9-
branches:
10-
- 'master'
11-
jobs:
12-
build:
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
version:
17-
- '1' # automatically expands to the latest stable 1.x release of Julia
18-
os:
19-
- ubuntu-latest
20-
arch:
21-
- x64
22-
steps:
23-
- uses: julia-actions/setup-julia@latest
24-
with:
25-
version: ${{ matrix.version }}
26-
arch: ${{ matrix.arch }}
2710

28-
- uses: actions/checkout@v4
29-
- name: Install JuliaFormatter and format
30-
run: |
31-
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
32-
julia -e 'using JuliaFormatter; format(".", verbose=true)'
11+
jobs:
12+
format-check:
13+
name: "Format Check"
14+
uses: "QuantumKitHub/.github/.github/workflows/formatcheck.yml@main"
15+
with:
16+
juliaformatter-version: "2"

0 commit comments

Comments
 (0)