Skip to content

Commit

Permalink
Merge branch 'main' into rename-sandbox-to-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
lkingland authored Aug 2, 2023
2 parents 1917a60 + 6eac0d0 commit 1f4d0fb
Show file tree
Hide file tree
Showing 2,299 changed files with 168,975 additions and 77,485 deletions.
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
16 changes: 8 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ 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
Expand All @@ -22,7 +22,7 @@ jobs:
test-unit:
strategy:
matrix:
go: [ 1.18.x ]
go: [ 1.20.2 ]
java: [ 17 ]
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- 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 @@ -67,7 +67,7 @@ jobs:
e2e-test:
strategy:
matrix:
go: [1.20.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -91,7 +91,7 @@ jobs:
e2e-on-cluster-test:
strategy:
matrix:
go: [1.20.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
- 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 @@ -167,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
2 changes: 1 addition & 1 deletion .github/workflows/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Check Schema
strategy:
matrix:
go: [1.18.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e-oncluster-runtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: On Cluster RT Test
strategy:
matrix:
go: [1.20.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e-oncluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: On Cluster Test
strategy:
matrix:
go: [1.20.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e-runtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.20.2
- name: Install Binaries
run: ./hack/binaries.sh
- name: Allocate Cluster
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: E2E Test
strategy:
matrix:
go: [1.20.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-embedded-fs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Func Embedded FS Test
strategy:
matrix:
go: [1.18.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
36 changes: 33 additions & 3 deletions .github/workflows/test-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,52 @@ jobs:
name: Integration Test
strategy:
matrix:
go: [1.18.x]
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: Allocate Cluster
run: ./hack/allocate.sh
- name: Setup testing func image
run: ./hack/create-testing-func-image.sh
- name: Local Registry
run: ./hack/registry.sh
- name: Allocate Cluster
run: ./hack/allocate.sh
- name: Patch S2I Task
run: ./hack/patch-s2i-task.sh
- name: Install Tekton
run: ./hack/tekton.sh
- name: Set up environment variables
run: |
echo "TEKTON_TESTS_ENABLED=1" >> "$GITHUB_ENV"
echo "GITLAB_TESTS_ENABLED=1" >> "$GITHUB_ENV"
echo "GITLAB_HOSTNAME=gitlab.127.0.0.1.sslip.io" >> "$GITHUB_ENV"
echo "GITLAB_ROOT_PASSWORD=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32})" >> "$GITHUB_ENV"
echo "PAC_CONTROLLER_HOSTNAME=pac-ctr.127.0.0.1.sslip.io" >> "$GITHUB_ENV"
- name: Install Pipelines as Code
run: ./hack/install-pac.sh
- name: Install Gitlab
run: ./hack/install-gitlab.sh
- name: Patch Hosts
run: ./hack/patch-hosts.sh
- name: Integration Test
run: make test-integration
- name: Dump Cluster Logs
if: always()
run: |
echo "::group::cluster events"
kubectl get events -A
echo "::endgroup::"
echo "::group::cluster containers logs"
stern '.*' --all-namespaces --no-follow
echo "::endgroup::"
- uses: codecov/codecov-action@v3
with:
files: ./coverage.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-podman.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Podman Test
strategy:
matrix:
go: [1.18.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -17,7 +17,7 @@ jobs:
go-version: ${{ matrix.go }}
- name: Install Podman
run: |
# TODO uncomment following once https://github.com/containers/podman/pull/16781 is in the kubic repository
# TODO uncomment following once https://github.com/containers/podman/pull/16781 is in the kubic repository
#. /etc/os-release
#sudo mkdir -p /etc/apt/keyrings
#curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_${VERSION_ID}/Release.key \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Unit Test
strategy:
matrix:
go: [1.18.x]
go: [1.20.2]
java: [17]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/update-builder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Update builder-jammy-full image

on:
schedule:
- cron: '0 */4 * * *'

jobs:
build-and-push-image:
permissions:
contents: read
packages: write
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.20.x"
- name: Build and Push
env:
GITHUB_TOKEN: ${{ github.token }}
run: go run ./hack/update-builder.go
29 changes: 29 additions & 0 deletions .github/workflows/update-springboot-platform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Update Spring Boot Platform in embedded templates

permissions:
contents: write
pull-requests: write

on:
schedule:
- cron: '0 */4 * * *'

jobs:
update:
name: Update Spring Boot Platform
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/setup-java@v1
with:
java-version: 17
- name: Install NPM deps.
run: npm install axios xml2js octokit
- name: Create PR
env:
GITHUB_TOKEN: ${{ github.token }}
run: node ./hack/update-springboot-platform.js

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/cmd/func.yaml
/templates/typescript/cloudevents/build
/templates/typescript/http/build
/templates/go/cloudevents/go.sum
/coverage.out
/coverage.txt
/.coverage
Expand Down
Loading

0 comments on commit 1f4d0fb

Please sign in to comment.