Inside we both know what's been going on

This commit is contained in:
2025-04-17 00:02:43 -04:00
parent 080a14a8cd
commit 8fef0bde6b
4 changed files with 44 additions and 43 deletions

View File

@@ -3,60 +3,61 @@ on:
branches:
- "*"
name: Unit Tests
name: 🧪✨ Unit Tests
jobs:
build-javascript:
name: 🧪 JavaScript Tests
name: 🧪📜 JavaScript Tests
runs-on: ubuntu-latest
steps:
- name: 🛡 Add Siteworx CA
- name: 🛡️🔒 Add Siteworx CA Certificates
run: |
apt update && apt install -yq ca-certificates curl
curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt
update-ca-certificates
- name: 📖 Checkout code
- name: 📖🔍 Checkout Repository Code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: ⚙️ Set up Node.js
- name: ⚙️🔧 Set up Node.js Environment
uses: actions/setup-node@v2
with:
node-version: '22.14.0'
- name: 📦 Install dependencies
- name: 📦📥 Install Dependencies
run: |
cd frontend
npm install
- name: ✅ Run tests
- name: 🧪 Run JavaScript Tests
run: |
cd frontend
npm run build
test-go:
env:
GOPRIVATE: 'git.siteworxpro.com'
GOPROXY: 'direct'
name: 🔍 Go Tests
name: 🔍🐹 Go Tests
runs-on: ubuntu-latest
steps:
- name: 🛡 Add Siteworx CA
- name: 🛡️🔒 Add Siteworx CA Certificates
run: |
apt update && apt install -yq ca-certificates curl
curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt
update-ca-certificates
- name: ⚙️ Set up Go
- name: ⚙️🐹 Set up Go Environment
uses: actions/setup-go@v2
with:
go-version: '1.24.0'
cache: true
- name: 📖 Checkout code
- name: 📖🔍 Checkout Repository Code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: 📦 Install dependencies
- name: 📦📥 Install Dependencies
run: |
cd backend
go mod download
- name: ✅ Run tests
- name: 🔍 Run Go Tests
run: |
cd backend
go test -v ./... -coverprofile=coverage.out