Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publication snippets #91

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '1.14'
go-version: '1.16'
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
Expand Down
43 changes: 40 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,26 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '1.14'
go-version: '1.16'
- name: Checkout code
uses: actions/checkout@v2

- name: Use github.com/AndreasSko/jwpub-snippets instead of fake implementation
uses: AndreasSko/find-and-replace-action@main
with:
from: ^replace github.com\/AndreasSko\/jwpub-snippets.*$
to: ""
files: go.mod

- name: Inject insteadOf config for private repo
env:
JWPUB_SNIPPET_GITHUB_TOKEN: ${{ secrets.JWPUB_SNIPPET_GITHUB_TOKEN }}
run: git config --global url."https://${JWPUB_SNIPPET_GITHUB_TOKEN}:[email protected]".insteadOf "https://github.com"

- run: go get
env:
GOPRIVATE: github.com/AndreasSko

- name: Run tests
run: go test ./...

Expand All @@ -32,14 +49,34 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '1.14'
go-version: '1.16'

- name: Install Gomobile
run: go get golang.org/x/mobile/cmd/gomobile

- name: Checkout code
uses: actions/checkout@v2

- name: Use github.com/AndreasSko/jwpub-snippets instead of fake implementation
uses: AndreasSko/find-and-replace-action@main
with:
from: ^replace github.com\/AndreasSko\/jwpub-snippets.*$
to: ""
files: go.mod

- name: Inject insteadOf config for private repo
env:
JWPUB_SNIPPET_GITHUB_TOKEN: ${{ secrets.JWPUB_SNIPPET_GITHUB_TOKEN }}
run: git config --global url."https://${JWPUB_SNIPPET_GITHUB_TOKEN}:[email protected]".insteadOf "https://github.com"

- run: go get
env:
GOPRIVATE: github.com/AndreasSko

- name: Initialize Gomobile
run: gomobile init
run: go mod download golang.org/x/mobile && gomobile init
working-directory: gomobile

- name: Build for iOS
run: gomobile bind -target ios -v
working-directory: gomobile
28 changes: 8 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,45 +1,33 @@
module github.com/AndreasSko/go-jwlm

go 1.14
go 1.16

require (
github.com/AlecAivazis/survey/v2 v2.2.12
github.com/AndreasSko/jwpub-snippets v0.0.0-20210704143853-4c0b907b6dd3
github.com/DATA-DOG/go-sqlmock v1.5.0
github.com/Jeffail/gabs v1.4.0
github.com/MakeNowJust/heredoc v1.0.0
github.com/Netflix/go-expect v0.0.0-20200312175327-da48e75238e2
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/buger/goterm v1.0.0
github.com/cavaliercoder/grab v1.0.1-0.20201108051000-98a5bfe305ec
github.com/codeclysm/extract/v3 v3.0.2
github.com/davecgh/go-spew v1.1.1
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/go-openapi/errors v0.20.0 // indirect
github.com/go-openapi/strfmt v0.20.0 // indirect
github.com/h2non/filetype v1.1.1 // indirect
github.com/hinshun/vt10x v0.0.0-20180809195222-d55458df857c
github.com/jedib0t/go-pretty v4.3.0+incompatible
github.com/juju/errors v0.0.0-20200330140219-3fe23663418f // indirect
github.com/klauspost/compress v1.13.1
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-runewidth v0.0.10 // indirect
github.com/kr/pty v1.1.8 // indirect
github.com/mattn/go-sqlite3 v1.14.7
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/go-wordwrap v1.0.1
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/pkg/errors v0.9.1
github.com/rivo/uniseg v0.2.0 // indirect
github.com/sergi/go-diff v1.2.0
github.com/sirupsen/logrus v1.8.1
github.com/smartystreets/assertions v1.2.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v1.1.1
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.8.1
github.com/stretchr/testify v1.7.0
go.mongodb.org/mongo-driver v1.5.0 // indirect
golang.org/x/crypto v0.0.0-20210317152858-513c2a44f670 // indirect
golang.org/x/term v0.0.0-20210317153231-de623e64d2a6 // indirect
golang.org/x/text v0.3.5 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
golang.org/x/sys v0.0.0-20210611083646-a4fc73990273 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)

replace github.com/AndreasSko/jwpub-snippets v0.0.0-20210627134355-912640c387c2 => ./publication/jwpub-snippets
Loading