Skip to content

Commit

Permalink
chore: bump faas-js-runtime and cloudevents for node & TS (#1873)
Browse files Browse the repository at this point in the history
* chore: bump faas-js-runtime and cloudevents for node & TS

The Node.js and TypeScript templates have been bumped to the latest
versions of faas-js-runtime (2.2.2) and CloudEvents (7.0.1).

There is an issue with the `expectType` test for TypeScript CloudEvent
functions which I can't quite figure out, but the type test is not
critical and does not do anything to validate other than whether the
function signature is what's expected by faas-js-runtime, and in this
case, I think type exported type for faas-js-runtime may actually be the
issue here.

Signed-off-by: Lance Ball <[email protected]>

* chore: pin all github actions to go 1.20.2

There was a change in how go parses URLs in versions higher than 1.20.2
(likely 1.20.6 and up) which breaks the Docker API's handling of daemon
URIs. This fix pins the Go version at a version known to work with the
existing Docker API and `func` implementation.

Signed-off-by: Lance Ball <[email protected]>

---------

Signed-off-by: Lance Ball <[email protected]>
  • Loading branch information
lance committed Jul 19, 2023
1 parent 410f075 commit 36489f3
Show file tree
Hide file tree
Showing 21 changed files with 13,796 additions and 12,256 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.20.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.20.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.20.2"
- name: Lint
run: make check && make check-templates
- name: Check that 'func.yaml schema' is up-to-date
Expand All @@ -22,7 +22,7 @@ jobs:
test-unit:
strategy:
matrix:
go: [ 1.20.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.20"
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.20"
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.20"
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.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-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.20.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Integration Test
strategy:
matrix:
go: [1.20.x]
go: [1.20.2]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
echo "::group::cluster events"
kubectl get events -A
echo "::endgroup::"
echo "::group::cluster containers logs"
stern '.*' --all-namespaces --no-follow
echo "::endgroup::"
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.20.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.20.x]
go: [1.20.2]
java: [17]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
Expand Down
Loading

0 comments on commit 36489f3

Please sign in to comment.