53e3fb858d
* chore: update Go version to 1.25.1 and dependencies - Updated Dockerfile to use Go 1.25.1 for both builder and final images. - Modified README files (Japanese, Chinese Simplified, Chinese Traditional, and English) to reflect the new Go version requirement of 1.25.1. - Updated go.mod to specify Go 1.25 and updated dependencies: - Upgraded hugo from v0.147.6 to v0.149.1 - Upgraded testify from v1.10.0 to v1.11.1 - Upgraded other indirect dependencies to their latest versions. - Updated go.sum to reflect the changes in dependencies. * fix: update golangci-lint to use latest version and install mode
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Reusable smoke test
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
run_on:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
smoke_test:
|
|
name: Smoke test
|
|
runs-on: ${{ inputs.run_on }}
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
- name: Setup Go
|
|
id: go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ^1.25
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
install-mode: goinstall
|
|
version: latest
|
|
- name: Install
|
|
run: make install
|
|
- name: Check rebuild
|
|
id: check_rebuild
|
|
working-directory: ./smoke_test/check_rebuild
|
|
run: |
|
|
nohup air > nohup.out 2> nohup.err < /dev/null &
|
|
sleep 15
|
|
echo "" >> main.go
|
|
sleep 5
|
|
cat nohup.out
|
|
grep "running" nohup.out | wc -l | if [ "$(cat -)" -eq "2" ]; then echo "::set-output name=value::PASS"; else echo "::set-output name=value::FAIL"; fi
|
|
- uses: nick-invision/assert-action@v2
|
|
with:
|
|
expected: "PASS"
|
|
actual: ${{ steps.check_rebuild.outputs.value }}
|