github.com/spotahome/redis-operator@v1.2.4/.github/workflows/ci.yaml (about)

     1  name: CI
     2  
     3  on:
     4    push:
     5      branches:
     6        - main
     7    pull_request:
     8  
     9  jobs:
    10    check:
    11      name: Golang Check
    12      runs-on: ubuntu-latest
    13      # Execute the checks inside the container instead the VM.
    14      container: golangci/golangci-lint:v1.50-alpine
    15      steps:
    16        - uses: actions/checkout@v3
    17        - run: ./scripts/check.sh
    18  
    19    unit-test:
    20      name: Unit test
    21      runs-on: ubuntu-latest
    22      steps:
    23        - uses: actions/checkout@v3
    24        - uses: actions/setup-go@v3
    25          with:
    26            go-version: 1.19
    27        - run: make ci-unit-test
    28  
    29    integration-test:
    30      name: Integration test
    31      runs-on: ubuntu-latest
    32      needs: [check, unit-test]
    33      strategy:
    34        matrix:
    35          kubernetes: [1.22.12, 1.23.9, 1.24.3]
    36      steps:
    37        - uses: actions/checkout@v3
    38        - uses: actions/setup-go@v3
    39          with:
    40            go-version: 1.19
    41        - name: Install conntrack
    42          run: sudo apt-get install -y conntrack
    43        - uses: medyagh/setup-minikube@v0.0.9
    44          with:
    45            kubernetes-version: ${{ matrix.kubernetes }}
    46            driver: none
    47        - name: Add redisfailover CRD
    48          run: kubectl create -f manifests/databases.spotahome.com_redisfailovers.yaml
    49        - run: make ci-integration-test
    50  
    51    chart-test:
    52      name: Chart testing
    53      runs-on: ubuntu-latest
    54      steps:
    55        - uses: actions/checkout@v3
    56          with:
    57            fetch-depth: 0
    58  
    59        - name: Install Helm
    60          uses: azure/setup-helm@v3
    61          with:
    62            version: v3.7.2
    63  
    64        - name: Helm test
    65          run: make helm-test