blob: 99d9eb42faa786c5232045f97aef56bb2a4baa7e [file]
# 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: Test Binding Go
description: 'Test Core with given setup and service'
inputs:
setup:
description: "The setup action for test"
service:
description: "The service to test"
feature:
description: "The feature to test"
runs:
using: "composite"
steps:
- name: Setup
shell: bash
run: |
mkdir -p ./dynamic_test_binding_go &&
cat <<EOF >./dynamic_test_binding_go/action.yml
runs:
using: composite
steps:
- name: Setup Test
uses: ./.github/services/${{ inputs.service }}/${{ inputs.setup }}
- name: Run Test Binding Go
shell: bash
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
# https://github.com/ilammy/msvc-dev-cmd/issues/25
rm /usr/bin/link.exe
fi
cp bindings/go/Makefile .
make tests
if [ "${{ inputs.setup }}" == "0_minio_s3" ]; then
make bench
fi
env:
OPENDAL_TEST: ${{ inputs.service }}
CGO_ENABLE: 0
EOF
- name: Run
uses: ./dynamic_test_binding_go