-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use open-sourced emulator, enable tests on CI (#72)
* use open-sourced emulator, enable tests on CI * update generated code * go mod tidy * use new contract API * fix tests * use new contract deployment function * fix contract name
- Loading branch information
Showing
17 changed files
with
327 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: '1.13.10' | ||
- run: make ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
.PHONY: test | ||
test: | ||
go test ./... | ||
|
||
.PHONY: generate | ||
generate: | ||
go generate | ||
|
||
.PHONY: check-generated | ||
check-generated: | ||
git diff -- lib/go/templates/ --exit-code | ||
.PHONY: check-tidy | ||
check-tidy: generate | ||
go mod tidy | ||
git diff --exit-code | ||
|
||
.PHONY: ci | ||
ci: generate check-generated | ||
ci: check-tidy test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
module github.com/onflow/flow-core-contracts/lib/go/templates | ||
|
||
go 1.14 | ||
|
||
require ( | ||
github.com/kevinburke/go-bindata v3.21.0+incompatible // indirect | ||
github.com/psiemens/sconfig v0.0.0-20190623041652-6e01eb1354fc // indirect | ||
github.com/spf13/cobra v1.1.1 // indirect | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.