on: push: branches: - "*" name: Unit Tests jobs: build-javascript: 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 test-go: env: GOPRIVATE: 'git.siteworxpro.com' GOPROXY: 'direct' 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