66 lines
1.4 KiB
YAML
66 lines
1.4 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://git.quad4.io/actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
|
|
- name: Setup Go
|
|
uses: https://git.quad4.io/actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
|
|
with:
|
|
go-version: '1.25.4'
|
|
cache: true
|
|
|
|
- name: Setup Node
|
|
uses: https://git.quad4.io/actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: '22'
|
|
|
|
- name: Setup pnpm
|
|
uses: https://git.quad4.io/actions/setup-pnpm@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
|
|
with:
|
|
version: 9
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
cd frontend
|
|
pnpm install
|
|
|
|
- name: Frontend Lint
|
|
run: |
|
|
cd frontend
|
|
pnpm run lint
|
|
|
|
- name: Frontend Check
|
|
run: |
|
|
cd frontend
|
|
pnpm run check
|
|
|
|
- name: Build Frontend
|
|
run: |
|
|
cd frontend
|
|
pnpm run build
|
|
|
|
- name: Go Lint
|
|
run: go vet ./...
|
|
|
|
- name: Go Test
|
|
run: go test -v ./...
|
|
|
|
- name: Build Backend
|
|
run: go build -o software-station main.go
|
|
|