fix(#19): resync categories to DB on each crawl run #46
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: Test Backend | |
| on: | |
| push: | |
| paths: | |
| - "backend/**" | |
| - ".github/workflows/test-backend.yml" | |
| pull_request: | |
| paths: | |
| - "backend/**" | |
| - ".github/workflows/test-backend.yml" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: backend/go.mod | |
| cache-dependency-path: backend/go.sum | |
| - run: go vet ./... | |
| - run: go test ./... | |
| - run: CGO_ENABLED=0 GOOS=linux go build -o /dev/null ./cmd/api |