mirror of
https://github.com/jetkvm/kvm.git
synced 2025-09-16 08:38:14 +00:00
* Move to GitHub runner for build action Lint action * Move to go 1.24.4 * Upgrade go packages github.com/coreos/go-oidc/v3 v3.11.0 -> v3.14.1 github.com/creack/pty v1.1.23 -> v1.1.24 github.com/gwatts/rootcerts v0.0.0-20240401182218-3ab9db955caf -> v0.0.0-20250601184604-370a9a75f341 github.com/pion/logging v0.2.3 -> v0.2.4 github.com/pion/webrtc/v4 v4.0.16 -> v4.1.2 github.com/prometheus/common v0.62.0 -> v0.65.0 github.com/vishvananda/netlink v1.3.1 -> v1.3.1 go.bug.st/serial v1.6.2 -> v1.6.4
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: build image
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- main
|
|
workflow_dispatch:
|
|
pull_request_review:
|
|
types: [submitted]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Build
|
|
if: github.event_name != 'pull_request_review' || github.event.review.state == 'approved'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: "npm"
|
|
cache-dependency-path: "**/package-lock.json"
|
|
- name: Set up Golang
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.24.4"
|
|
- name: Build frontend
|
|
run: |
|
|
make frontend
|
|
- name: Build application
|
|
run: |
|
|
make build_dev
|
|
- name: Run tests
|
|
run: |
|
|
go test ./... -json > testreport.json
|
|
- name: Make test cases
|
|
run: |
|
|
make build_dev_test
|
|
- name: Golang Test Report
|
|
uses: becheran/go-testreport@v0.3.2
|
|
with:
|
|
input: "testreport.json"
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: jetkvm-app
|
|
path: |
|
|
bin/jetkvm_app
|
|
device-tests.tar.gz |