Files
reloading-manager/.gitea/workflows/tests.yml
Ron Rise 3edab28e37 Squashed commit of the following:
commit 72c6bcce3795dc491c8299b68dded029db5e066e
Author: Ron Rise <ron@siteworxpro.com>
Date:   Thu Apr 17 09:14:24 2025 -0400

    My boss forced me to build this feature... Pure shit.

commit 64c94d788f1f2b0926faf4326b7819e3dfa6ae85
Author: GitHub Action 🤖 <gitia@siteworxpro.com>
Date:   Thu Apr 17 12:34:35 2025 +0000

    📝🔄 Update deployment manifest with new image tags

commit 681f42f59afac7ad771dc7b6102eb1358b83443a
Author: Ron Rise <ron@siteworxpro.com>
Date:   Thu Apr 17 08:19:16 2025 -0400

    We're no strangers to love
2025-04-17 09:31:26 -04:00

63 lines
1.8 KiB
YAML

on:
push:
branches:
- "*"
name: 🧪✨ Unit Tests Workflow
jobs:
build-javascript:
name: 🧪📜 JavaScript Tests
runs-on: ubuntu-latest
steps:
- 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 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: ubuntu-latest
steps:
- 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 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