mirror of
https://git.fightbot.fun/hxuanyu/FileRelay.git
synced 2026-02-15 08:51:44 +08:00
Initial commit
This commit is contained in:
37
.github/workflows/build.yml
vendored
Normal file
37
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24'
|
||||
cache: true
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: webapp/package-lock.json
|
||||
|
||||
- name: Build Frontend
|
||||
run: |
|
||||
cd webapp
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Build Go
|
||||
run: go build -v .
|
||||
Reference in New Issue
Block a user