Skip to content

Commit 59391b2

Browse files
authored
Merge pull request #213 from replicatedhq/reusable-pact-install
update pipelines to use reusable pact action
2 parents 260a157 + 1cb193c commit 59391b2

File tree

6 files changed

+26
-16
lines changed

6 files changed

+26
-16
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- uses: actions/setup-go@v3
18-
- name: Install pact
19-
run: |
20-
curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.91.0/pact-1.91.0-linux-x86_64.tar.gz
21-
tar -zxvf pact-1.91.0-linux-x86_64.tar.gz
22-
sudo mv pact /usr/local/bin
23-
echo "/usr/local/bin/pact/bin" >> $GITHUB_PATH
18+
with:
19+
go-version: '^1.18'
20+
- uses: replicatedhq/action-install-pact@v1
2421
- name: make test
2522
run: make test
2623
make-build:

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v3
2121
- uses: actions/setup-go@v3
22-
- name: Install pact
23-
run: |
24-
curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.91.0/pact-1.91.0-linux-x86_64.tar.gz
25-
tar -zxvf pact-1.91.0-linux-x86_64.tar.gz
26-
sudo mv pact /usr/local/bin
27-
echo "/usr/local/bin/pact/bin" >> $GITHUB_PATH
22+
with:
23+
go-version: '^1.18'
24+
- uses: replicatedhq/action-install-pact@v1
2825
- name: make test
2926
run: make test
3027
make-build:
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Require pull request labels
2+
3+
permissions:
4+
pull-requests: read
5+
6+
on:
7+
pull_request:
8+
types:
9+
- opened
10+
- labeled
11+
- unlabeled
12+
- synchronize
13+
14+
jobs:
15+
require-pr-labels:
16+
uses: replicatedhq/reusable-workflows/.github/workflows/pr-enforce-labels.yaml@main

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17
1+
FROM golang:1.18
22

33
ENV PROJECTPATH=/go/src/github.com/replicatedhq/replicated
44

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/replicatedhq/replicated
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/fatih/color v1.7.0

hack/Dockerfile.testing

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM golang:1.17
1+
FROM golang:1.18
22

3-
RUN cd /opt && curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.81.0/pact-1.81.0-linux-x86_64.tar.gz && tar xzf pact-1.81.0-linux-x86_64.tar.gz
3+
RUN cd /opt && curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.91.0/pact-1.91.0-linux-x86_64.tar.gz && tar xzf pact-1.91.0-linux-x86_64.tar.gz
44
ENV PATH="/opt/pact/bin:${PATH}"
55

66
WORKDIR /go/src/github.com/replicatedhq/replicated

0 commit comments

Comments
 (0)