You've already forked reloading-manager
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- "*"
|
|
|
|
name: 🧪✨ Unit Tests Workflow
|
|
|
|
jobs:
|
|
build-javascript:
|
|
name: 🧪📜 JavaScript Tests
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: 📖🔍 Checkout Repository Code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
- name: ⚙️🔧 Set up Node.js Environment
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '22.14.0'
|
|
- name: 📦📥 Install Dependencies
|
|
run: |
|
|
cd frontend
|
|
npm install
|
|
- name: ✅🧪 Run JavaScript Tests
|
|
run: |
|
|
cd frontend
|
|
npm run build
|
|
|
|
test-go:
|
|
env:
|
|
GOPRIVATE: 'git.siteworxpro.com'
|
|
GOPROXY: 'direct'
|
|
name: 🔍🐹 Go Tests
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: ⚙️🐹 Set up Go Environment
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.24.0'
|
|
cache: true
|
|
- name: 📖🔍 Checkout Repository Code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
- name: 📦📥 Install Dependencies
|
|
run: |
|
|
cd backend
|
|
go mod download
|
|
- name: ✅🔍 Run Go Tests
|
|
run: |
|
|
cd backend
|
|
go test -v ./... -coverprofile=coverage.out |