Skip to content

Commit 4db2a04

Browse files
authored
Merge pull request #23 from signalsciences/andy/pr-ci
Run CI on pull requests
2 parents 159bc9d + fb47b74 commit 4db2a04

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: sigsci-module-golang
22
on:
33
push:
4-
branches: [ master ]
4+
branches:
5+
- master
6+
pull_request:
7+
58

69
jobs:
710
build:
@@ -18,9 +21,12 @@ jobs:
1821
aws-region: us-west-2
1922
- name: Check out code into the Go module directory
2023
uses: actions/checkout@v2
21-
- name: Run make script
24+
- name: build
25+
run: ./scripts/build.sh
26+
- name: upload
27+
if: ${{ github.ref == '/refs/heads/master' }}
2228
run: |
2329
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 803688608479.dkr.ecr.us-west-2.amazonaws.com
24-
./make.sh
30+
./upload.sh
2531
env:
2632
PROD_ID: ${{ secrets.SIGSCI_PROD_CANONICAL_ID }}

make.sh renamed to upload.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/sh
22
set -ex
33

4-
./scripts/build.sh
5-
64
if [ -n "${PROD_ID}" ]; then
75
## setup our package properties by distro
86
PKG_NAME="sigsci-module-golang"

0 commit comments

Comments
 (0)