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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
|
|
- name: Setup Go
|
|
uses: https://git.quad4.io/actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
|
with:
|
|
go-version: '1.25.4'
|
|
cache: true
|
|
|
|
- name: Setup Node
|
|
uses: https://git.quad4.io/actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
|
|
with:
|
|
node-version: '22'
|
|
|
|
- name: Setup pnpm
|
|
uses: https://git.quad4.io/actions/setup-pnpm@7088e561eb65bb68695d245aa206f005ef30921d # v4.1.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
|
|
|