github.com/KinWaiYuen/client-go/v2@v2.5.4/.github/workflows/integration.yml (about)

     1  name: Integration Test
     2  
     3  on:
     4    push:
     5      branches: [ master ]
     6    pull_request:
     7      branches: [ master ]
     8  
     9  jobs:
    10  
    11    integration-local:
    12      runs-on: ubuntu-latest
    13      steps:
    14        - name: Checkout
    15          uses: actions/checkout@v2
    16  
    17        - name: Set up Go
    18          uses: actions/setup-go@v2
    19          with:
    20            go-version: 1.16
    21  
    22        - name: Test
    23          run: go test ./...
    24          working-directory: integration_tests
    25  
    26    integration-local-race:
    27      runs-on: ubuntu-latest
    28      steps:
    29        - name: Checkout
    30          uses: actions/checkout@v2
    31  
    32        - name: Set up Go
    33          uses: actions/setup-go@v2
    34          with:
    35            go-version: 1.16
    36  
    37        - name: Test
    38          run: go test ./... -race
    39          working-directory: integration_tests
    40  
    41    integration-tikv:
    42      runs-on: ubuntu-latest
    43      steps:
    44        - name: Checkout
    45          uses: actions/checkout@v2
    46  
    47        - name: Set up Go
    48          uses: actions/setup-go@v2
    49          with:
    50            go-version: 1.16
    51  
    52        - name: Fetch PD
    53          uses: shrink/actions-docker-extract@v1
    54          id: extract-pd
    55          with:
    56            image: pingcap/pd:nightly
    57            path: /pd-server
    58  
    59        - name: Fetch TiKV
    60          uses: shrink/actions-docker-extract@v1
    61          id: extract-tikv
    62          with:
    63            image: pingcap/tikv:nightly
    64            path: /tikv-server
    65  
    66        - name: Run PD & TiKV
    67          run: |
    68            mv ../${{steps.extract-pd.outputs.destination}}/pd-server .
    69            mv ../${{steps.extract-tikv.outputs.destination}}/tikv-server .
    70            ./pd-server > pd.log 2>&1 &
    71            sleep 5
    72            ./tikv-server -C tikv.toml > tikv.log 2>&1 &
    73            sleep 15
    74          working-directory: integration_tests
    75  
    76        - name: Test
    77          run: go test --with-tikv
    78          working-directory: integration_tests
    79  
    80    integration-raw-tikv:
    81      runs-on: ubuntu-latest
    82      steps:
    83        - name: Checkout
    84          uses: actions/checkout@v2
    85  
    86        - name: Set up Go
    87          uses: actions/setup-go@v2
    88          with:
    89            go-version: 1.16
    90  
    91        - name: Fetch PD
    92          uses: shrink/actions-docker-extract@v1
    93          id: extract-pd
    94          with:
    95            image: pingcap/pd:nightly
    96            path: /pd-server
    97  
    98        - name: Fetch TiKV
    99          uses: shrink/actions-docker-extract@v1
   100          id: extract-tikv
   101          with:
   102            image: pingcap/tikv:nightly
   103            path: /tikv-server
   104  
   105        - name: Run PD & TiKV
   106          run: |
   107            mv ../../${{steps.extract-pd.outputs.destination}}/pd-server .
   108            mv ../../${{steps.extract-tikv.outputs.destination}}/tikv-server .
   109            ./pd-server > pd.log 2>&1 &
   110            sleep 5
   111            ./tikv-server -C tikv.toml > tikv.log 2>&1 &
   112            sleep 15
   113          working-directory: integration_tests/raw
   114  
   115        - name: Test
   116          run: go test --with-tikv
   117          working-directory: integration_tests/raw