github.com/gogf/gf/v2@v2.7.4/.github/workflows/ci-sub.yml (about)

     1  # The sub codes build and unit testing running workflow.
     2  # It maintains the ci of unimportant packages.
     3  name: GoFrame Sub CI
     4  
     5  
     6  on:
     7    push:
     8      branches:
     9      - master
    10      - develop
    11      - personal/**
    12      - feature/**
    13      - enhance/**
    14      - fix/**
    15  
    16    pull_request:
    17      branches:
    18      - master
    19      - develop
    20      - personal/**
    21      - feature/**
    22      - enhance/**
    23      - fix/**
    24  
    25  # This allows a subsequently queued workflow run to interrupt previous runs
    26  concurrency:
    27    group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
    28    cancel-in-progress: true
    29  
    30  env:
    31    TZ: "Asia/Shanghai"
    32  
    33  
    34  jobs:
    35    code-test:
    36      runs-on: ubuntu-latest
    37  
    38      strategy:
    39        matrix:
    40          go-version: [ "1.18", "1.19", "1.20", "1.22", "1.23" ]
    41          goarch: [ "386", "amd64" ]
    42  
    43      steps:
    44      - name: Setup Timezone
    45        uses: szenius/set-timezone@v2.0
    46        with:
    47          timezoneLinux: "Asia/Shanghai"
    48  
    49      - name: Checkout Repository
    50        uses: actions/checkout@v4
    51  
    52      - name: Start Minikube
    53        uses: medyagh/setup-minikube@master
    54  
    55      - name: Setup Golang ${{ matrix.go-version }}
    56        uses: actions/setup-go@v5
    57        with:
    58          go-version: ${{ matrix.go-version }}
    59          cache-dependency-path: '**/go.sum' 
    60  
    61      - name: Before Script
    62        run:  bash .github/workflows/before_script.sh
    63  
    64      - name: Build & Test
    65        run: bash .github/workflows/ci-sub.sh
    66  
    67