Skip to content

Commit b0835d2

Browse files
committed
Split action
1 parent f8ec471 commit b0835d2

2 files changed

Lines changed: 36 additions & 22 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: tests
2+
on:
3+
push:
4+
branches:
5+
- trunk
6+
pull_request:
7+
workflow_dispatch:
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
jobs:
14+
check-formatting:
15+
name: JuliaFormatter
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 60
18+
permissions:
19+
actions: write
20+
contents: read
21+
strategy:
22+
fail-fast: false
23+
steps:
24+
- uses: actions/checkout@v6
25+
- uses: julia-actions/setup-julia@v2
26+
with:
27+
version: 'lts'
28+
arch: x64
29+
- uses: julia-actions/cache@v3
30+
- name: Install JuliaFormatter and check format
31+
run: |
32+
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
33+
julia -e 'using JuliaFormatter; isok = format("."); if isok exit(0) else exit(1) end'
34+
Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: tests
22
on:
33
push:
44
branches:
@@ -11,7 +11,7 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1313
jobs:
14-
test:
14+
tests:
1515
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
1616
runs-on: ${{ matrix.os }}
1717
timeout-minutes: 60
@@ -44,24 +44,4 @@ jobs:
4444
- uses: codecov/codecov-action@v5
4545
env:
4646
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
47-
check-format:
48-
name: JuliaFormat
49-
runs-on: ubuntu-latest
50-
timeout-minutes: 60
51-
permissions:
52-
actions: write
53-
contents: read
54-
strategy:
55-
fail-fast: false
56-
steps:
57-
- uses: actions/checkout@v6
58-
- uses: julia-actions/setup-julia@v2
59-
with:
60-
version: 'lts'
61-
arch: x64
62-
- uses: julia-actions/cache@v3
63-
- name: Install JuliaFormatter and check format
64-
run: |
65-
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
66-
julia -e 'using JuliaFormatter; isok = format("."); if isok exit(0) else exit(1) end'
6747

0 commit comments

Comments
 (0)