mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
# Conflicts: # .github/workflows/ci-main.sh # .github/workflows/ci-main.yml # .github/workflows/ci-sub.yml # .github/workflows/golangci-lint.yml # README.MD # contrib/metric/otelmetric/go.mod # contrib/metric/otelmetric/go.sum # go.mod # go.sum # net/ghttp/ghttp_z_unit_feature_middleware_basic_test.go
68 lines
1.3 KiB
YAML
68 lines
1.3 KiB
YAML
# The sub codes build and unit testing running workflow.
|
|
# It maintains the ci of unimportant packages.
|
|
name: GoFrame Sub CI
|
|
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
- personal/**
|
|
- feature/**
|
|
- enhance/**
|
|
- fix/**
|
|
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- develop
|
|
- personal/**
|
|
- feature/**
|
|
- enhance/**
|
|
- fix/**
|
|
|
|
# This allows a subsequently queued workflow run to interrupt previous runs
|
|
concurrency:
|
|
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
TZ: "Asia/Shanghai"
|
|
|
|
|
|
jobs:
|
|
code-test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
go-version: [ "1.22", "1.23" ]
|
|
goarch: [ "386","amd64" ]
|
|
|
|
steps:
|
|
- name: Setup Timezone
|
|
uses: szenius/set-timezone@v2.0
|
|
with:
|
|
timezoneLinux: "Asia/Shanghai"
|
|
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Start Minikube
|
|
uses: medyagh/setup-minikube@master
|
|
|
|
- name: Setup Golang ${{ matrix.go-version }}
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
cache-dependency-path: '**/go.sum'
|
|
|
|
- name: Before Script
|
|
run: bash .github/workflows/before_script.sh
|
|
|
|
- name: Build & Test
|
|
run: bash .github/workflows/ci-sub.sh
|
|
|
|
|