-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #415 from Templum/develop
🔀 Merging Develop into V1 for Release
- Loading branch information
Showing
6 changed files
with
146 additions
and
550 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,22 +21,22 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
uses: github/codeql-action/autobuild@v3 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
uses: github/codeql-action/analyze@v3 | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
|
@@ -47,7 +47,7 @@ jobs: | |
if: ${{ github.event_name == 'pull_request' }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.20.0 | ||
cache: false | ||
|
@@ -78,57 +78,3 @@ jobs: | |
version: v1.51.1 | ||
# Optional: show only new issues if it's a pull request. The default value is `false`. | ||
only-new-issues: true | ||
integration: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
fetch-depth: 2 | ||
# If this run was triggered by a pull request event, then checkout | ||
# the head of the pull request instead of the merge commit. | ||
- run: git checkout HEAD^2 | ||
if: ${{ github.event_name == 'pull_request' }} | ||
|
||
# Should hopefully give enough time for it to start prior to testing | ||
- name: Start RabbitMQ | ||
uses: getong/[email protected] | ||
with: | ||
rabbitmq version: "3.8.11" | ||
host port: 5672 | ||
rabbitmq user: "user" | ||
rabbitmq password: "pass" | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.20.0 | ||
cache: false | ||
|
||
- name: K8S Cluster Setup | ||
uses: helm/[email protected] | ||
|
||
- name: Get Arkade | ||
run: curl -sLS https://get.arkade.dev | sudo sh | ||
|
||
- name: Get FaaS CLI | ||
run: ark get faas-cli && sudo mv /home/runner/.arkade/bin/faas-cli /usr/local/bin/ | ||
|
||
- name: Setup OpenFaaS | ||
run: ark install openfaas --basic-auth=false --set faasnetes.image=ghcr.io/openfaas/faas-netes:0.16.1 --set gateway.image=ghcr.io/openfaas/gateway:0.25.5 | ||
|
||
- name: Await OpenFaaS Port | ||
run: kubectl -n openfaas wait --for=condition=available --timeout=600s deploy/gateway | ||
|
||
- name: Forward OpenFaaS Port | ||
run: kubectl port-forward --address localhost,127.0.0.1 -n openfaas svc/gateway 8080:8080 & | ||
|
||
- name: Spawn Function | ||
run: faas-cli store deploy figlet --annotation topic="Foo,Bar,Dead,Beef" --name integration | ||
|
||
- name: Await Lambda Port | ||
run: kubectl -n openfaas-fn wait --for=condition=available --timeout=600s deploy/integration | ||
|
||
- name: Integration Test | ||
run: go test --tags=integration ./... |
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
Oops, something went wrong.