Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
IPC3 committed Jul 20, 2023
2 parents ff1e364 + 5948cf4 commit 57a4b6a
Show file tree
Hide file tree
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.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
testdata/repository-a.git/objects/*/* ignore-lint=true
testdata/repository.git/objects/*/* ignore-lint=true
templates/node/*/package-lock.json ignore-lint=true
templates/typescript/*/package-lock.json ignore-lint=true
version.txt linguist-generated=true
zz_filesystem_generated.go linguist-generated=true
docker/zz_close_guarding_client_generated.go linguist-generated=true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Build
strategy:
matrix:
go: [1.18.x]
go: [1.20.2]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Check Source
strategy:
matrix:
go: [1.18.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
83 changes: 72 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/setup-ko@v0.6
- 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
Expand Down Expand Up @@ -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/setup-ko@v0.6
- run: ko build -B ./cmd/func
96 changes: 0 additions & 96 deletions .github/workflows/knative-boilerplate.yaml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/knative-donotsubmit.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/knative-go-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ on:

jobs:
build:
uses: knative/actions/.github/workflows/go-build.yaml@main
uses: knative/actions/.github/workflows/reusable-go-build.yaml@main
2 changes: 1 addition & 1 deletion .github/workflows/knative-go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ on:

jobs:
test:
uses: knative/actions/.github/workflows/go-test.yaml@main
uses: knative/actions/.github/workflows/reusable-go-test.yaml@main
32 changes: 0 additions & 32 deletions .github/workflows/knative-releasability.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/knative-release-notes.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/knative-security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ on:

jobs:
analyze:
uses: knative/actions/.github/workflows/security.yaml@main
uses: knative/actions/.github/workflows/reusable-security.yaml@main
Loading

0 comments on commit 57a4b6a

Please sign in to comment.