|
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | # Backend tests (Go) |
| 11 | + # Frontend tests run locally via pre-push hook, not in CI |
11 | 12 | backend: |
12 | 13 | name: Backend Tests |
13 | 14 | runs-on: ubuntu-latest |
|
27 | 28 |
|
28 | 29 | - name: Test |
29 | 30 | run: go test -v ./... |
30 | | - |
31 | | - # Frontend tests (React + TypeScript) |
32 | | - frontend: |
33 | | - name: Frontend Tests |
34 | | - runs-on: ubuntu-latest |
35 | | - defaults: |
36 | | - run: |
37 | | - working-directory: ./frontend |
38 | | - steps: |
39 | | - - uses: actions/checkout@v4 |
40 | | - |
41 | | - - name: Setup Node.js |
42 | | - uses: actions/setup-node@v4 |
43 | | - with: |
44 | | - node-version: '18' |
45 | | - |
46 | | - - name: Install dependencies |
47 | | - run: npm install |
48 | | - |
49 | | - - name: Run TypeScript check |
50 | | - run: npx tsc --noEmit |
51 | | - |
52 | | - - name: Run tests |
53 | | - run: npm run test:run |
54 | | - |
55 | | - - name: Generate coverage report |
56 | | - run: npm run test:coverage |
57 | | - |
58 | | - - name: Upload coverage to Codecov |
59 | | - uses: codecov/codecov-action@v4 |
60 | | - with: |
61 | | - directory: ./frontend/coverage |
62 | | - flags: frontend |
63 | | - token: ${{ secrets.CODECOV_TOKEN }} |
64 | | - fail_ci_if_error: false |
65 | | - |
66 | | - - name: Upload coverage artifacts |
67 | | - uses: actions/upload-artifact@v4 |
68 | | - with: |
69 | | - name: coverage-report |
70 | | - path: ./frontend/coverage |
71 | | - retention-days: 7 |
72 | | - |
73 | | - # Linting - Temporarily disabled due to TUI package linting issues |
74 | | - # TODO: Re-enable after fixing TUI linting or removing TUI package |
75 | | - # lint: |
76 | | - # name: Go Lint |
77 | | - # runs-on: ubuntu-latest |
78 | | - # steps: |
79 | | - # - uses: actions/checkout@v4 |
80 | | - |
81 | | - # - name: Set up Go |
82 | | - # uses: actions/setup-go@v5 |
83 | | - # with: |
84 | | - # go-version: '1.24' |
85 | | - |
86 | | - # - name: Create dummy frontend directory |
87 | | - # run: mkdir -p frontend/dist && echo "CLI build - frontend not included" > frontend/dist/README.txt |
88 | | - |
89 | | - # - name: golangci-lint |
90 | | - # uses: golangci/golangci-lint-action@v3 |
91 | | - # with: |
92 | | - # version: latest |
0 commit comments