-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
280 additions
and
259 deletions.
There are no files selected for viewing
Empty file.
File renamed without changes.
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,31 @@ | ||
name: build | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
build: | ||
name: Run tests and lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Unit Tests | ||
uses: cedrickring/[email protected] | ||
env: | ||
GO111MODULE: "on" | ||
with: | ||
args: make install && make test_unit_codecov | ||
- name: Push CodeCov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: coverage.txt | ||
flags: unittests | ||
fail_ci_if_error: true | ||
- name: Lint | ||
uses: cedrickring/[email protected] | ||
env: | ||
GO111MODULE: "on" | ||
with: | ||
args: make install && make lint |
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,38 @@ | ||
name: releaser | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Unit Tests | ||
uses: cedrickring/[email protected] | ||
env: | ||
GO111MODULE: "on" | ||
with: | ||
args: make install && make test_unit_codecov | ||
- name: Push CodeCov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: coverage.txt | ||
flags: unittests | ||
fail_ci_if_error: true | ||
- name: Lint | ||
uses: cedrickring/[email protected] | ||
env: | ||
GO111MODULE: "on" | ||
with: | ||
args: make install && make lint | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist --debug | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ builds: | |
- windows | ||
- darwin | ||
ldflags: | ||
- -s -w -X github.com/lyft/flytestdlib/version.Version={{.Version}} -X github.com/lyft/flytestdlib/version.Build={{.ShortCommit}} -X github.com/lyft/flytestdlib/version.BuildTime={{.Date}} | ||
- -s -w -X github.com/flyteorg/flytestdlib/version.Version={{.Version}} -X github.com/flyteorg/flytestdlib/version.Build={{.ShortCommit}} -X github.com/flyteorg/flytestdlib/version.BuildTime={{.Date}} | ||
archives: | ||
- replacements: | ||
darwin: macOS | ||
|
@@ -38,7 +38,7 @@ scoop: | |
|
||
# Repository to push the app manifest to. | ||
bucket: | ||
owner: lyft | ||
owner: flyteorg | ||
name: flytectl | ||
|
||
# Git author used to commit to the repository. | ||
|
@@ -49,7 +49,7 @@ scoop: | |
|
||
# Your app's homepage. | ||
# Default is empty. | ||
homepage: "https://godoc.org/github.com/lyft/flytectl" | ||
homepage: "https://godoc.org/github.com/flyteorg/flytectl" | ||
|
||
# Your app's description. | ||
# Default is empty. | ||
|
@@ -61,19 +61,12 @@ scoop: | |
|
||
# Persist data between application updates | ||
persist: | ||
- "data" | ||
- "config.toml" | ||
brews: | ||
- # Name template of the recipe | ||
# Default to project name | ||
name: flytectl | ||
|
||
# IDs of the archives to use. | ||
# Defaults to all. | ||
# ids: | ||
# - foo | ||
# - bar | ||
|
||
# GOARM to specify which 32-bit arm version to use if there are multiple versions | ||
# from the build section. Brew formulas support atm only one 32-bit version. | ||
# Default is 6 for all artifacts or each id if there a multiple versions. | ||
|
@@ -83,21 +76,14 @@ brews: | |
# same kind. We will probably unify this in the next major version like it is done with scoop. | ||
|
||
# Github repository to push the tap to. | ||
github: | ||
owner: github-user | ||
name: homebrew-tap | ||
|
||
# OR Gitlab | ||
# gitlab: | ||
# owner: gitlab-user | ||
# name: homebrew-tap | ||
|
||
# Gitea is not supported yet, but the support coming | ||
tap: | ||
owner: flyteorg | ||
name: flytectl | ||
|
||
# Template for the url which is determined by the given Token (github or gitlab) | ||
# Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}" | ||
# Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/uploads/{{ .ArtifactUploadHash }}/{{ .ArtifactName }}" | ||
url_template: "http://github.com/lyft/flytectl/releases/{{ .Tag }}/{{ .ArtifactName }}" | ||
url_template: "http://github.com/flyteorg/flytectl/releases/{{ .Tag }}/{{ .ArtifactName }}" | ||
|
||
# Allows you to set a custom download strategy. Note that you'll need | ||
# to implement the strategy and add it to your tap repository. | ||
|
@@ -112,20 +98,16 @@ brews: | |
# Git author used to commit to the repository. | ||
# Defaults are shown. | ||
commit_author: | ||
name: goreleaserbot | ||
email: [email protected] | ||
|
||
# Folder inside the repository to put the formula. | ||
# Default is the root folder. | ||
folder: Formula | ||
name: flytebot | ||
email: [email protected] | ||
|
||
# Caveats for the user of your binary. | ||
# Default is empty. | ||
caveats: "How to use this binary" | ||
|
||
# Your app's homepage. | ||
# Default is empty. | ||
homepage: "https://godoc.org/github.com/lyft/flytectl" | ||
homepage: "https://flytectl.readthedocs.io/en/latest" | ||
|
||
# Your app's description. | ||
# Default is empty. | ||
|
@@ -139,30 +121,6 @@ brews: | |
# Default is false. | ||
skip_upload: auto | ||
|
||
# Custom block for brew. | ||
# Can be used to specify alternate downloads for devel or head releases. | ||
# Default is empty. | ||
# custom_block: | | ||
# head "https://github.com/some/package.git" | ||
# ... | ||
|
||
# Packages your package depends on. | ||
# dependencies: | ||
# - name: git | ||
# - name: zsh | ||
# type: optional | ||
|
||
# Packages that conflict with your package. | ||
# conflicts: | ||
# - svn | ||
# - bash | ||
|
||
# Specify for packages that run as a service. | ||
# Default is empty. | ||
# plist: | | ||
# <?xml version="1.0" encoding="UTF-8"?> | ||
# ... | ||
|
||
# So you can `brew test` your formula. | ||
# Default is empty. | ||
test: system "#{bin}/program --version" | ||
|
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
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
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.