-
Notifications
You must be signed in to change notification settings - Fork 139
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
4,245 changed files
with
385,626 additions
and
178,805 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,40 +11,46 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
go-version: "1.20.2" | ||
- name: Lint | ||
run: make check | ||
run: make check && make check-templates | ||
- name: Check that 'func.yaml schema' is up-to-date | ||
run: make schema-check | ||
- name: Check embedded templates content | ||
run: go test -run "^\QTestFileSystems\E$/^\Qembedded\E$" | ||
run: go test -run "^\QTestFileSystems\E$/^\Qembedded\E$" ./pkg/filesystem | ||
|
||
test-unit: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
go: [ 1.20.2 ] | ||
java: [ 17 ] | ||
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- run: git config --global core.autocrlf false | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
go-version: ${{ matrix.go }} | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
java-version: ${{ matrix.java }} | ||
- name: Unit Test | ||
run: make test | ||
- name: Template Unit Tests | ||
run: make test-templates | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage.txt | ||
flags: unit-tests | ||
flags: unit-tests-${{ matrix.os }} | ||
|
||
test-integration: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
go-version: "1.20.2" | ||
- name: Install Binaries | ||
run: ./hack/binaries.sh | ||
- name: Allocate Cluster | ||
|
@@ -58,14 +64,69 @@ jobs: | |
files: ./coverage.txt | ||
flags: integration-tests | ||
|
||
e2e-test: | ||
strategy: | ||
matrix: | ||
go: [1.20.2] | ||
os: ["ubuntu-latest"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Install Binaries | ||
run: ./hack/binaries.sh | ||
- name: Allocate Cluster | ||
run: ./hack/allocate.sh | ||
- name: Local Registry | ||
run: ./hack/registry.sh | ||
- name: E2E Test | ||
run: make test-e2e | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage.txt | ||
flags: e2e-test | ||
|
||
e2e-on-cluster-test: | ||
strategy: | ||
matrix: | ||
go: [1.20.2] | ||
os: ["ubuntu-latest"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- uses: imjasonh/[email protected] | ||
- name: Install Binaries | ||
run: ./hack/binaries.sh | ||
- name: Setup testing func image | ||
run: ./hack/create-testing-func-image.sh | ||
- name: Allocate Cluster | ||
run: ./hack/allocate.sh | ||
- name: Deploy Tekton | ||
run: ./hack/tekton.sh | ||
- name: Deploy Test Git Server | ||
run: ./test/gitserver.sh | ||
- name: E2E On Cluster Test | ||
env: | ||
E2E_RUNTIMES: "" | ||
run: make test-e2e-on-cluster | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage.txt | ||
flags: e2e-test-oncluster | ||
|
||
build: | ||
needs: [check, test-unit, test-integration] | ||
needs: [check, test-unit, test-integration, e2e-test, e2e-on-cluster-test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
go-version: "1.20.2" | ||
# Standard build tasks | ||
- name: Build | ||
run: make cross-platform | ||
|
@@ -106,6 +167,6 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
go-version: "1.20.2" | ||
- uses: imjasonh/[email protected] | ||
- run: ko build -B ./cmd/func |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Oops, something went wrong.