Skip to content

Commit 9b64dd8

Browse files
phipsgableryebaidevmotion
committed
Setup bors (#42)
Implements #30. Is there anything else to set up for bors? Co-authored-by: Hong Ge <[email protected]> Co-authored-by: David Widmann <[email protected]>
1 parent 04e3e0c commit 9b64dd8

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: CI
33
on:
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

913
jobs:
1014
test:

.github/workflows/Format.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

.github/workflows/IntegrationTest.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: IntegrationTest
33
on:
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

913
jobs:
1014
test:

bors.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

0 commit comments

Comments
 (0)