Skip to content

Commit

Permalink
Add Bors Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian committed Apr 16, 2021
1 parent 577b62a commit a83c617
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: End-to-end test

on:
push:
branches: [master, main, force_test, release-*]
branches: [master, main, force_test, release-*, staging, trying]
pull_request:
branches: [master, main, force_test, release-*]

jobs:

build:
name: Run
name: Bash End-to-End Tests
runs-on: ubuntu-latest
steps:

Expand Down
30 changes: 24 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Go

on:
push:
branches: [master, main, force_test, release-*]
branches: [master, main, force_test, release-*, staging, trying]
pull_request:
branches: ['**']

jobs:

build:
name: Build
name: Build and Lint
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
run: go build -v ./...

test:
name: Test
name: Go Tests
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: complete-test-run.log
name: complete-test-run.log
path: complete-test-run.log
retention-days: 5

Expand All @@ -104,7 +104,7 @@ jobs:
git diff --exit-code
test-end-to-end:
name: Test end-to-end extension combinations
name: Go End-to-End Tests
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -161,6 +161,24 @@ jobs:
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.test-setups.shortname }}-test-run.log
name: ${{ matrix.test-setups.shortname }}-test-run.log
path: ${{ matrix.test-setups.shortname }}-test-run.log
retention-days: 5



# Added to summarize the matrix (otherwise we would need to list every single
# job in bors.toml)
tests-result:
name: Go End-to-End Test Results
if: always()
needs:
- test-end-to-end
runs-on: ubuntu-latest
steps:
- name: Mark the job as a success
if: needs.test-end-to-end.result == 'success'
run: exit 0
- name: Mark the job as a failure
if: needs.test-end-to-end.result != 'success'
run: exit 1
4 changes: 4 additions & 0 deletions bors.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
status = ["Build and Lint", "Go Tests", "Go End-to-End Test Results", "Bash End-to-End Tests"]
delete-merged-branches = true
required_approvals = 1
timeout_sec = 3600 # one hours

0 comments on commit a83c617

Please sign in to comment.