@@ -2,27 +2,67 @@ name: CI
2
2
on :
3
3
pull_request :
4
4
branches :
5
- - main
5
+ - master
6
+ - ' release-'
6
7
paths-ignore :
7
8
- ' docs/**'
8
9
push :
9
10
branches :
10
- - main
11
+ - master
11
12
paths-ignore :
12
13
- ' docs/**'
14
+
15
+ concurrency :
16
+ # Skip intermediate builds: always, but for the master branch.
17
+ # Cancel intermediate builds: always, but for the master branch.
18
+ group : ${{ github.workflow }}-${{ github.ref }}
19
+ cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
20
+
13
21
jobs :
22
+ formatter :
23
+ runs-on : ${{ matrix.os }}
24
+ strategy :
25
+ matrix :
26
+ julia-version : [1]
27
+ julia-arch : [x86]
28
+ os : [ubuntu-latest]
29
+ steps :
30
+ - uses : julia-actions/setup-julia@latest
31
+ with :
32
+ version : ${{ matrix.julia-version }}
33
+
34
+ - uses : actions/checkout@v4
35
+ - name : Install JuliaFormatter and format
36
+ # This will use the latest version by default but you can set the version like so:
37
+ #
38
+ # julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
39
+ run : |
40
+ julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="1.0.50"))'
41
+ julia -e 'using JuliaFormatter; format(".", verbose=true)'
42
+ - name : Format check
43
+ run : |
44
+ julia -e '
45
+ out = Cmd(`git diff`) |> read |> String
46
+ if out == ""
47
+ exit(0)
48
+ else
49
+ @error "Some files have not been formatted !!!"
50
+ write(stdout, out)
51
+ exit(1)
52
+ end'
14
53
test :
15
54
runs-on : ubuntu-latest
16
55
strategy :
56
+ fail-fast : false
17
57
matrix :
18
- GROUP :
58
+ group :
19
59
- QA
20
60
- Core
21
61
version :
22
62
- ' 1'
23
63
steps :
24
64
- uses : actions/checkout@v4
25
- - uses : julia-actions/setup-julia@v2
65
+ - uses : julia-actions/setup-julia@v1
26
66
with :
27
67
version : ${{ matrix.version }}
28
68
- uses : actions/cache@v4
37
77
${{ runner.os }}-
38
78
- uses : julia-actions/julia-buildpkg@v1
39
79
- uses : julia-actions/julia-runtest@v1
80
+ env :
81
+ GROUP : ${{ matrix.group }}
40
82
- uses : julia-actions/julia-processcoverage@v1
41
83
- uses : codecov/codecov-action@v4
42
84
with :
0 commit comments