2023-05-24 16:46:28 +08:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
|
|
|
|
name: Build Test
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-linux-binary:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-06-15 11:19:52 +08:00
|
|
|
- name: Checkout Code
|
2024-06-05 16:58:09 +08:00
|
|
|
uses: actions/checkout@v4
|
2023-05-25 16:46:39 +08:00
|
|
|
- name: Setup Node
|
2024-06-05 16:58:09 +08:00
|
|
|
uses: actions/setup-node@v4
|
2023-05-24 16:46:28 +08:00
|
|
|
with:
|
2024-06-05 16:58:09 +08:00
|
|
|
node-version: '20.2'
|
2023-05-24 16:46:28 +08:00
|
|
|
- name: Build Web
|
|
|
|
id: build_frontend
|
|
|
|
run: |
|
2023-06-15 11:19:52 +08:00
|
|
|
cd frontend && npm install && npm run build:pro
|
2023-05-24 16:46:28 +08:00
|
|
|
env:
|
|
|
|
NODE_OPTIONS: --max-old-space-size=8192
|
2023-05-25 16:46:39 +08:00
|
|
|
- name: Setup Go
|
2024-06-05 16:58:09 +08:00
|
|
|
uses: actions/setup-go@v5
|
2023-05-24 16:46:28 +08:00
|
|
|
with:
|
2024-06-05 16:58:09 +08:00
|
|
|
go-version: '1.22'
|
2023-05-24 16:46:28 +08:00
|
|
|
- name: Build Server
|
2024-06-05 16:58:09 +08:00
|
|
|
uses: goreleaser/goreleaser-action@v6
|
2023-05-24 16:46:28 +08:00
|
|
|
with:
|
|
|
|
args: release --snapshot --clean
|