Skip to content

Commit 9a55beb

Browse files
committed
Create merge.yml
1 parent 2cf13a9 commit 9a55beb

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/merge.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build
2+
3+
on:
4+
pull_request:
5+
types: [ closed ]
6+
7+
jobs:
8+
9+
build:
10+
if: github.event.pull_request.merged == true
11+
name: Run Tests
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Set up Go 1.15
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: ^1.15
19+
20+
- name: Check out code into the Go module directory
21+
uses: actions/checkout@v2
22+
23+
- name: Build and Run Tests
24+
run: make all
25+
26+
close_job:
27+
if: github.event.pull_request.merged == false
28+
runs-on: ubuntu-latest
29+
steps:
30+
- run: |
31+
echo PR #${{ github.event.number }} has been closed without being merged
32+

0 commit comments

Comments
 (0)