Fix deploy restart intent and clipboard fallback #407
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Vet | |
| run: | | |
| GO_PACKAGES="$(go list ./... | grep -v '/node_modules/')" | |
| go vet $GO_PACKAGES | |
| - name: Vulnerability scan | |
| run: | | |
| GO_PACKAGES="$(go list ./... | grep -v '/node_modules/')" | |
| go run golang.org/x/vuln/cmd/govulncheck@latest $GO_PACKAGES | |
| - name: Test | |
| run: | | |
| GO_PACKAGES="$(go list ./... | grep -v '/node_modules/')" | |
| go test -v -count=1 -timeout 600s -p 1 $GO_PACKAGES 2>&1 | tee /tmp/test-output.log | |
| - name: Upload test output | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-output | |
| path: /tmp/test-output.log | |
| dashboard: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| cache: npm | |
| cache-dependency-path: web/dashboard/package-lock.json | |
| - name: Install dependencies | |
| working-directory: web/dashboard | |
| run: npm ci | |
| - name: Type check | |
| working-directory: web/dashboard | |
| run: npx tsc -b | |
| - name: Audit dependencies | |
| working-directory: web/dashboard | |
| run: npm audit --audit-level=moderate | |
| - name: Lint | |
| working-directory: web/dashboard | |
| run: npm run lint | |
| - name: Build | |
| working-directory: web/dashboard | |
| run: npm run build | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| cache: npm | |
| cache-dependency-path: docs/site/package-lock.json | |
| - name: Install dependencies | |
| working-directory: docs/site | |
| run: npm ci | |
| - name: Audit dependencies | |
| working-directory: docs/site | |
| run: npm audit --audit-level=moderate | |
| - name: Lint | |
| working-directory: docs/site | |
| run: npm run lint | |
| - name: Build | |
| working-directory: docs/site | |
| run: npm run build |