Skip to content

Change the integration tests. #52

Change the integration tests.

Change the integration tests. #52

Workflow file for this run

# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Integration Test
on:
push:
branches:
- 'main'
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout collatz example
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: true
- name: Build echo example.
run: cd examples/echo; go build .
- name: Setup kubectl.
uses: azure/setup-kubectl@v3
- name: Setup minikube
uses: medyagh/setup-minikube@master
- name: Login into Github Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# - name: Install weaver-kube
# run: |
# go install ./cmd/weaver-kube
# - uses: actions/download-artifact@v3
# with:
# name: collatz-binary
# path: ./examples/collatz
# - name: Run integration script
# working-directory: ./examples/collatz
# run: ../../dev/integration.sh
# shell: bash
# env:
# IMAGE_NAME: ghcr.io/${{ github.repository }}/example-collatz
# - name: Display deployment logs
# if: failure()
# working-directory: ./examples/collatz
# run: |
# kubectl get all && \
# kubectl describe pod -l app_name=collatz && \
# kubectl logs -l app_name=collatz
# - uses: actions/upload-artifact@v3
# if: always()
# with:
# name: collatz-kube-manifests
# path: ./examples/collatz/kube_*.yaml