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: ubuntu-latest 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