File tree Expand file tree Collapse file tree 4 files changed +66
-2
lines changed
Expand file tree Collapse file tree 4 files changed +66
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ name: CI
33on :
44 push :
55 branches :
6+ # This is where pull requests from "bors r+" are built.
7+ - staging
8+ # This is where pull requests from "bors try" are built.
9+ - trying
10+ # Build the main branch.
611 - main
7- pull_request :
812
913jobs :
1014 test :
Original file line number Diff line number Diff line change 1+ name : Format
2+
3+ on :
4+ push :
5+ branches :
6+ # This is where pull requests from "bors r+" are built.
7+ - staging
8+ # This is where pull requests from "bors try" are built.
9+ - trying
10+ # Build the main branch.
11+ - main
12+
13+ concurrency :
14+ # Skip intermediate builds: always.
15+ # Cancel intermediate builds: only if it is a pull request build.
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
18+
19+ jobs :
20+ format :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v2
24+ - uses : julia-actions/setup-julia@latest
25+ with :
26+ version : 1
27+ - name : Format code
28+ run : |
29+ using Pkg
30+ Pkg.add(; name="JuliaFormatter", uuid="98e50ef6-434e-11e9-1051-2b60c6c9e899")
31+ using JuliaFormatter
32+ format("."; verbose=true)
33+ shell : julia --color=yes {0}
34+ - uses : reviewdog/action-suggester@v1
35+ if : github.event_name == 'pull_request'
36+ with :
37+ tool_name : JuliaFormatter
38+ fail_on_error : true
Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ name: IntegrationTest
33on :
44 push :
55 branches :
6+ # This is where pull requests from "bors r+" are built.
7+ - staging
8+ # This is where pull requests from "bors try" are built.
9+ - trying
10+ # Build the main branch.
611 - main
7- pull_request :
812
913jobs :
1014 test :
Original file line number Diff line number Diff line change 1+ status = [
2+ " Julia 1.% - ubuntu-latest - x64" ,
3+ " Julia 1.% - macOS-latest - x64" ,
4+ " Julia 1.% - windows-latest - x64" ,
5+ " Julia 1 - ubuntu-latest - x64" ,
6+ " Julia 1 - macOS-latest - x64" ,
7+ " Julia 1 - windows-latest - x64" ,
8+ " DynamicPPL.jl" ,
9+ " format"
10+ ]
11+ delete_merged_branches = true
12+ # Require at least on approval of a project member.
13+ required_approvals = 1
14+ # Squash commits before merging.
15+ use_squash_merge = true
16+ # Uncomment this to use a two hour timeout.
17+ # The default is one hour.
18+ timeout_sec = 7200
You can’t perform that action at this time.
0 commit comments