Skip to content

Commit 57a4b6a

Browse files
author
IPC3
committed
rebase
2 parents ff1e364 + 5948cf4 commit 57a4b6a

File tree

4,245 files changed

+385626
-178805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,245 files changed

+385626
-178805
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
testdata/repository-a.git/objects/*/* ignore-lint=true
22
testdata/repository.git/objects/*/* ignore-lint=true
3+
templates/node/*/package-lock.json ignore-lint=true
4+
templates/typescript/*/package-lock.json ignore-lint=true
35
version.txt linguist-generated=true
46
zz_filesystem_generated.go linguist-generated=true
57
docker/zz_close_guarding_client_generated.go linguist-generated=true

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Build
88
strategy:
99
matrix:
10-
go: [1.18.x]
10+
go: [1.20.2]
1111
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
1212
runs-on: ${{ matrix.os }}
1313
steps:

.github/workflows/check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Check Source
88
strategy:
99
matrix:
10-
go: [1.18.x]
10+
go: [1.20.2]
1111
os: ["ubuntu-latest"]
1212
runs-on: ${{ matrix.os }}
1313
steps:

.github/workflows/ci.yaml

+72-11
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,46 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-go@v3
1313
with:
14-
go-version: "1.18"
14+
go-version: "1.20.2"
1515
- name: Lint
16-
run: make check
16+
run: make check && make check-templates
1717
- name: Check that 'func.yaml schema' is up-to-date
1818
run: make schema-check
1919
- name: Check embedded templates content
20-
run: go test -run "^\QTestFileSystems\E$/^\Qembedded\E$"
20+
run: go test -run "^\QTestFileSystems\E$/^\Qembedded\E$" ./pkg/filesystem
2121

2222
test-unit:
23-
runs-on: "ubuntu-latest"
23+
strategy:
24+
matrix:
25+
go: [ 1.20.2 ]
26+
java: [ 17 ]
27+
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
28+
runs-on: ${{ matrix.os }}
2429
steps:
30+
- run: git config --global core.autocrlf false
2531
- uses: actions/checkout@v3
2632
- uses: actions/setup-go@v3
2733
with:
28-
go-version: "1.18"
34+
go-version: ${{ matrix.go }}
2935
- uses: actions/setup-java@v1
3036
with:
31-
java-version: '11'
37+
java-version: ${{ matrix.java }}
3238
- name: Unit Test
3339
run: make test
3440
- name: Template Unit Tests
3541
run: make test-templates
3642
- uses: codecov/codecov-action@v3
3743
with:
3844
files: ./coverage.txt
39-
flags: unit-tests
45+
flags: unit-tests-${{ matrix.os }}
4046

4147
test-integration:
4248
runs-on: "ubuntu-latest"
4349
steps:
4450
- uses: actions/checkout@v3
4551
- uses: actions/setup-go@v3
4652
with:
47-
go-version: "1.18"
53+
go-version: "1.20.2"
4854
- name: Install Binaries
4955
run: ./hack/binaries.sh
5056
- name: Allocate Cluster
@@ -58,14 +64,69 @@ jobs:
5864
files: ./coverage.txt
5965
flags: integration-tests
6066

67+
e2e-test:
68+
strategy:
69+
matrix:
70+
go: [1.20.2]
71+
os: ["ubuntu-latest"]
72+
runs-on: ${{ matrix.os }}
73+
steps:
74+
- uses: actions/checkout@v3
75+
- uses: actions/setup-go@v3
76+
with:
77+
go-version: ${{ matrix.go }}
78+
- name: Install Binaries
79+
run: ./hack/binaries.sh
80+
- name: Allocate Cluster
81+
run: ./hack/allocate.sh
82+
- name: Local Registry
83+
run: ./hack/registry.sh
84+
- name: E2E Test
85+
run: make test-e2e
86+
- uses: codecov/codecov-action@v3
87+
with:
88+
files: ./coverage.txt
89+
flags: e2e-test
90+
91+
e2e-on-cluster-test:
92+
strategy:
93+
matrix:
94+
go: [1.20.2]
95+
os: ["ubuntu-latest"]
96+
runs-on: ${{ matrix.os }}
97+
steps:
98+
- uses: actions/checkout@v3
99+
- uses: actions/setup-go@v3
100+
with:
101+
go-version: ${{ matrix.go }}
102+
- uses: imjasonh/setup-ko@v0.6
103+
- name: Install Binaries
104+
run: ./hack/binaries.sh
105+
- name: Setup testing func image
106+
run: ./hack/create-testing-func-image.sh
107+
- name: Allocate Cluster
108+
run: ./hack/allocate.sh
109+
- name: Deploy Tekton
110+
run: ./hack/tekton.sh
111+
- name: Deploy Test Git Server
112+
run: ./test/gitserver.sh
113+
- name: E2E On Cluster Test
114+
env:
115+
E2E_RUNTIMES: ""
116+
run: make test-e2e-on-cluster
117+
- uses: codecov/codecov-action@v3
118+
with:
119+
files: ./coverage.txt
120+
flags: e2e-test-oncluster
121+
61122
build:
62-
needs: [check, test-unit, test-integration]
123+
needs: [check, test-unit, test-integration, e2e-test, e2e-on-cluster-test]
63124
runs-on: ubuntu-latest
64125
steps:
65126
- uses: actions/checkout@v3
66127
- uses: actions/setup-go@v3
67128
with:
68-
go-version: "1.18"
129+
go-version: "1.20.2"
69130
# Standard build tasks
70131
- name: Build
71132
run: make cross-platform
@@ -106,6 +167,6 @@ jobs:
106167
- uses: actions/checkout@v3
107168
- uses: actions/setup-go@v3
108169
with:
109-
go-version: "1.18"
170+
go-version: "1.20.2"
110171
- uses: imjasonh/setup-ko@v0.6
111172
- run: ko build -B ./cmd/func

.github/workflows/knative-boilerplate.yaml

-96
This file was deleted.

.github/workflows/knative-donotsubmit.yaml

-61
This file was deleted.

.github/workflows/knative-go-build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ on:
1111

1212
jobs:
1313
build:
14-
uses: knative/actions/.github/workflows/go-build.yaml@main
14+
uses: knative/actions/.github/workflows/reusable-go-build.yaml@main

.github/workflows/knative-go-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ on:
1414

1515
jobs:
1616
test:
17-
uses: knative/actions/.github/workflows/go-test.yaml@main
17+
uses: knative/actions/.github/workflows/reusable-go-test.yaml@main

.github/workflows/knative-releasability.yaml

-32
This file was deleted.

.github/workflows/knative-release-notes.yaml

-28
This file was deleted.

.github/workflows/knative-security.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ on:
1414

1515
jobs:
1616
analyze:
17-
uses: knative/actions/.github/workflows/security.yaml@main
17+
uses: knative/actions/.github/workflows/reusable-security.yaml@main

0 commit comments

Comments
 (0)