Skip to content

Commit

Permalink
Merge pull request #23 from goabout/github-actions
Browse files Browse the repository at this point in the history
Migrate from Travis-CI to GitHub Actions
  • Loading branch information
jcassee authored Apr 14, 2021
2 parents e6c0c7e + e477c3c commit bcd4df4
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 197 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: build

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16'

- name: Cache Go modules
uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test with coverage
run: make test-coverage

- name: Upload coverage
uses: codecov/codecov-action@v1

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ project_name: kustomize-sopssecretgenerator

env:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org

env_files:
github_token: .github_token

gomod:
proxy: true

before:
hooks:
- go mod tidy
Expand Down
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Development

* Update sops dependency to 3.7.1 to support [age](https://age-encryption.org/)-encrypted secrets.
* Migrate CI to GitHub Actions.

## Version 1.3.2

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ test-coverage:

.PHONY: release
release:
goreleaser --rm-dist --skip-publish
goreleaser release --rm-dist --skip-publish

.PHONY: publish-release
publish-release:
goreleaser --rm-dist
goreleaser release --rm-dist

.PHONY: clean
clean:
Expand Down
4 changes: 0 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,13 @@ require (
github.com/hashicorp/vault/api v1.1.0 // indirect
github.com/hashicorp/vault/sdk v0.2.0 // indirect
github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
github.com/lib/pq v1.10.0 // indirect
github.com/lithammer/dedent v1.1.0
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/mozilla-services/yaml v0.0.0-20201007153854-c369669a6625 // indirect
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
github.com/pkg/errors v0.9.1
github.com/sergi/go-diff v1.2.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/vektra/mockery v1.1.2 // indirect
go.mozilla.org/sops/v3 v3.7.1
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1 // indirect
Expand Down
171 changes: 10 additions & 161 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit bcd4df4

Please sign in to comment.