-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Separate yaml lint from build * Separate e2e tests, unit tests and snapshot release * Update build.yml Co-authored-by: Yoav Rotem <[email protected]>
- Loading branch information
1 parent
765b2d1
commit dd68e85
Showing
1 changed file
with
33 additions
and
2 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 |
---|---|---|
|
@@ -19,8 +19,8 @@ env: | |
KIND_IMAGE: "kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6" | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Setup Go | ||
|
@@ -31,12 +31,32 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: yaml-lint | ||
uses: ibiqlik/action-yamllint@v3 | ||
unit: | ||
name: Unit tests | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Run unit tests | ||
run: make tests | ||
- name: Upload code coverage | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
file: ./coverage.txt | ||
e2e: | ||
name: E2e tests | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup Kubernetes cluster (KIND) | ||
uses: engineerd/[email protected] | ||
with: | ||
|
@@ -56,6 +76,17 @@ jobs: | |
first_file_path: ./test.data | ||
second_file_path: integration/testdata/Expected_output.data | ||
expected_result: PASSED | ||
release: | ||
name: Release snapshot | ||
runs-on: ubuntu-18.04 | ||
needs: [e2e, unit] | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Dry-run release snapshot | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
|