-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate release and build-and-test workflows (#139)
- Loading branch information
Showing
3 changed files
with
206 additions
and
195 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,83 @@ | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
tags-ignore: | ||
- "v*.*.*" | ||
pull_request: | ||
workflow_dispatch: | ||
# Run M-F at 5AM CDT | ||
schedule: | ||
- cron: '0 10 * * 1-5' | ||
|
||
env: | ||
DEFAULT_GO_VERSION: ^1.17 | ||
DEFAULT_PY_VERSION: "3.9" | ||
IS_PUSH: ${{ github.event_name == 'push' }} | ||
|
||
jobs: | ||
buildAndTest: | ||
name: Build and Test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.DEFAULT_GO_VERSION }} | ||
|
||
- name: Set up Python ${{ env.DEFAULT_PY_VERSION }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.DEFAULT_PY_VERSION }} | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: make build | ||
|
||
- name: Unit Tests | ||
run: make unit-test | ||
|
||
- name: Lints | ||
run: make spellcheck shellcheck | ||
|
||
- name: Go Report Card Tests | ||
run: make go-report-card-test | ||
|
||
- name: Readme Length Validator | ||
run: make validate-readme | ||
|
||
- name: Brew Sync Dry run | ||
run: make homebrew-sync-dry-run | ||
|
||
- name: License Test | ||
if: ${{ env.IS_PUSH == true }} | ||
run: make license-test | ||
|
||
- name: E2E Tests | ||
run: make e2e-test | ||
|
||
- name: Mock IP Count Test | ||
run: make helm-mock-ip-count-test | ||
|
||
- name: Build Release Assets | ||
run: make build-release-assets | ||
|
||
- name: Build Docker Images Linux | ||
run: make build-docker-images-linux | ||
|
||
buildWindows: | ||
name: Build Docker Images Windows | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.DEFAULT_GO_VERSION }} | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build Docker Images Windows | ||
run: choco install make && RefreshEnv.cmd && make build-docker-images-windows |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.