Skip to content

Commit 9c1f958

Browse files
committed
Update formatter workflow
1 parent 9ab3485 commit 9c1f958

File tree

2 files changed

+6
-29
lines changed

2 files changed

+6
-29
lines changed

.github/workflows/Format.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/FormatCheck.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,15 @@ name: FormatCheck
33
on:
44
push:
55
branches:
6+
- 'main'
67
- 'master'
78
tags: '*'
89
pull_request:
910
branches:
11+
- 'main'
1012
- '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 }}
2713

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)'
14+
jobs:
15+
formatcheck:
16+
name: "Format Check"
17+
uses: "QuantumKitHub/QuantumKitHubActions/.github/workflows/FormatCheck.yml@main"

0 commit comments

Comments
 (0)