Skip to content

Commit

Permalink
Add GH actions on PR (#143)
Browse files Browse the repository at this point in the history
* pr gh action

* test fixes

* fixed new error message in tests

* removed on edit

* because go 1.13 is old as

* 1.18 works, apply on build as well
  • Loading branch information
pballandras authored Apr 11, 2022
1 parent 820b879 commit 52a7d9c
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.18
id: go

- name: Checkout
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run Tests
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.18
id: go

- name: Checkout
uses: actions/checkout@v1

- name: Build
env:
CGO_ENABLED: 0
run: go build -v

- name: Run Tests
run: |
bash ./test.sh
29 changes: 26 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
module github.com/coveooss/credentials-sync

go 1.12
go 1.18

require (
github.com/aws/aws-sdk-go v1.36.28
github.com/bndr/gojenkins v1.0.1
github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d // indirect
github.com/evalphobia/logrus_sentry v0.8.2
github.com/getsentry/raven-go v0.2.0 // indirect
github.com/getsentry/sentry-go v0.11.0
github.com/golang/mock v1.4.4
github.com/hashicorp/go-multierror v1.1.0
Expand All @@ -19,4 +17,29 @@ require (
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.4.7 // indirect
github.com/getsentry/raven-go v0.2.0 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/pelletier/go-toml v1.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/afero v1.1.2 // indirect
github.com/spf13/cast v1.3.0 // indirect
github.com/spf13/jwalterweatherman v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b // indirect
golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f // indirect
golang.org/x/text v0.3.3 // indirect
gopkg.in/ini.v1 v1.51.1 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

replace github.com/bndr/gojenkins => github.com/julienduchesne/gojenkins v2.1.0+incompatible
Loading

0 comments on commit 52a7d9c

Please sign in to comment.