github.com/IBM-Blockchain/fabric-operator@v1.0.4/.github/workflows/integration-tests.yaml (about)

     1  #
     2  # Copyright contributors to the Hyperledger Fabric Operator project
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  # Licensed under the Apache License, Version 2.0 (the "License");
     7  # you may not use this file except in compliance with the License.
     8  # You may obtain a copy of the License at:
     9  #
    10  # 	  http://www.apache.org/licenses/LICENSE-2.0
    11  #
    12  # Unless required by applicable law or agreed to in writing, software
    13  # distributed under the License is distributed on an "AS IS" BASIS,
    14  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  # See the License for the specific language governing permissions and
    16  # limitations under the License.
    17  #
    18  name: Integration Test
    19  
    20  on:
    21    push:
    22      branches: [main]
    23    pull_request:
    24      branches: [main]
    25  
    26  env:
    27    KUBECONFIG_PATH: /tmp/kubeconfig.yaml
    28    OPERATOR_NAMESPACE: inttest
    29    DOCKERCONFIGJSON: ${{ secrets.DOCKERCONFIGJSON }}
    30    GO_VER: 1.18
    31  
    32  jobs:
    33    suite:
    34      runs-on: ubuntu-latest
    35  
    36      strategy:
    37        matrix:
    38          suite:
    39            - ca
    40            - peer
    41            - orderer
    42            - console
    43  #          - init
    44  #          - migration
    45  #          - e2ev2
    46  #          - actions/ca
    47  #          - actions/orderer
    48  #          - actions/peer
    49  #          - autorenew
    50  #          - cclauncher
    51  #          - restartmgr
    52  #          - operatorrestart
    53  
    54      steps:
    55        - uses: actions/checkout@v3
    56  
    57        - name: Set up go
    58          uses: actions/setup-go@v3
    59          with:
    60            go-version: ${{ env.GO_VER }}
    61  
    62        - name: Set up ginkgo
    63          run: |
    64            go install github.com/onsi/ginkgo/ginkgo
    65  
    66        - name: Set up KIND k8s cluster
    67          run: |
    68            make kind
    69            kubectl config view --raw > /tmp/kubeconfig.yaml
    70  
    71        - name: Install Fabric CRDs
    72          run: |
    73            kubectl kustomize config/crd | kubectl apply -f -
    74  
    75        - name: Run ${{ matrix.suite }} integration tests
    76          run: make integration-tests
    77  #        run: |
    78  #          sleep 360 && kubectl --kubeconfig $KUBECONFIG_PATH describe pods --all-namespaces &
    79  #          make integration-tests
    80          env:
    81            INT_TEST_NAME: ${{ matrix.suite }}