blob: b13c45efdc4bb038a60df9d05ae363f427a52748 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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:
pull_request:
push:
branches:
- main
jobs:
integration-test:
strategy:
matrix:
case:
- http
# - zookeeper
# - consul
# - nacos
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.2.2
with:
submodules: true
- name: Set Skip Env Var
uses: ./.github/actions/skip-ci
- name: Setup .NET Core SDK
if: env.SKIP_CI != 'true'
uses: actions/setup-dotnet@v4.3.1
with:
dotnet-version: 9.0.302
- name: Build with dotnet
if: env.SKIP_CI != 'true'
run: dotnet build --configuration Release
- name: Build docker image for dotnet example
if: env.SKIP_CI != 'true'
run: |
cd ./examples/AspNetCoreExample/
docker build -t dotnet-example .
- name: Run docker compose
if: env.SKIP_CI != 'true'
uses: hoverkraft-tech/compose-action@v2.0.1
with:
compose-file: ./build/docker-compose-${{ matrix.case }}.yml
up-flags: -d
# replace with check health step
- name: Run tests
if: env.SKIP_CI != 'true'
run: |
sleep 30s
cd client/Tests/Apache.ShenYu.IntegrationTests
dotnet test