Fixing Qwertylex's bug.

This commit is contained in:
2025-04-16 23:09:59 -04:00
parent fa83011226
commit 4d25d7e019
3 changed files with 89 additions and 69 deletions

View File

@@ -7,56 +7,56 @@ name: Unit Tests
jobs:
build-javascript:
name: Run JavaScript Unit Tests
name: 🧪 JavaScript Tests
runs-on: ubuntu-latest
steps:
- name: Add Siteworx CA
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
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22.14.0'
- name: Install dependencies
run: |
cd frontend
npm install
- name: Run tests
run: |
cd frontend
npm run build
- name: 🛡 Add Siteworx CA
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
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: ⚙️ Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22.14.0'
- name: 📦 Install dependencies
run: |
cd frontend
npm install
- name: Run tests
run: |
cd frontend
npm run build
test-go:
env:
GOPRIVATE: 'git.siteworxpro.com'
GOPROXY: 'direct'
name: Run Goland Unit Tests
name: 🔍 Go Tests
runs-on: ubuntu-latest
steps:
- name: Add Siteworx CA
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
uses: actions/setup-go@v2
with:
go-version: '1.24.0'
cache: true
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install dependencies
run: |
cd backend
go mod download
- name: Run tests
run: |
cd backend
go test -v ./... -coverprofile=coverage.out
- name: 🛡 Add Siteworx CA
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
uses: actions/setup-go@v2
with:
go-version: '1.24.0'
cache: true
- name: 📖 Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: 📦 Install dependencies
run: |
cd backend
go mod download
- name: Run tests
run: |
cd backend
go test -v ./... -coverprofile=coverage.out