-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 773 Bytes
/
merge.yaml
File metadata and controls
37 lines (28 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build
on:
pull_request:
types: [ closed ]
jobs:
build:
if: github.event.pull_request.merged == true
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.17.9
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Rebuild mocks
run: go install github.com/golang/mock/mockgen@v1.6.0 && make mocks
- name: Run Tests
run: make test
env:
SHELL: /bin/bash
close_job:
if: github.event.pull_request.merged == false
runs-on: ubuntu-latest
steps:
- run: |
echo PR #${{ github.event.number }} has been closed without being merged