chore(fix): github.com/siyul-park/uniflow/ext v0.10.0 -> v0.11.0 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
jobs: | |
check: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
go: ['1.23'] | |
name: Check ${{ matrix.os }} @ Go ${{ matrix.go }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Cache Go Modules and Build | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Initialize Project | |
run: make init | |
- name: Run Linter | |
run: make lint | |
- name: Run Tests and Generate Coverage | |
run: make coverage | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.out | |
fail_ci_if_error: false | |
benchmark: | |
needs: check | |
if: github.ref == 'refs/heads/main' | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
go: ['1.22'] | |
name: Benchmark Comparison ${{ matrix.os }} @ Go ${{ matrix.go }} | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
steps: | |
- name: Checkout Previous Code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.base_ref }} | |
path: previous | |
- name: Checkout New Code | |
uses: actions/checkout@v4 | |
with: | |
path: new | |
- name: Set up Go for Benchmarking | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install Benchmark Dependencies | |
run: go install golang.org/x/perf/cmd/benchstat@latest | |
- name: Initialize Previous Code | |
working-directory: previous | |
run: make init | |
- name: Run Benchmark (Previous) | |
working-directory: previous | |
run: make benchmark test-options="-count=2" | tee benchmark.txt | |
- name: Initialize New Code | |
working-directory: new | |
run: make init | |
- name: Run Benchmark (New) | |
working-directory: new | |
run: make benchmark test-options="-count=2" | tee benchmark.txt | |
- name: Compare Benchmark Results | |
run: benchstat previous/benchmark.txt new/benchmark.txt |