This repository was archived by the owner on Jan 5, 2026. It is now read-only.
feat: Add comprehensive testing, metrics, security, and documentation #7
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: PayLink CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: GolangCI-Lint | |
| uses: golangci/golangci-lint-action@v4 | |
| with: | |
| version: latest | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: Install C++ Deps | |
| run: sudo apt-get install -y build-essential cmake libssl-dev | |
| - name: Build C++ Lib | |
| run: | | |
| cd crypto_cpp | |
| mkdir build && cd build | |
| cmake .. && make && sudo make install | |
| sudo ldconfig | |
| - name: Run Unit Tests | |
| run: go test -v ./... | |
| build-docker: | |
| runs-on: ubuntu-latest | |
| needs: [test] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Server | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: infra/Dockerfile.server | |
| push: false | |
| tags: paylink-server:latest | |
| - name: Build Worker | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: infra/Dockerfile.worker | |
| push: false | |
| tags: paylink-worker:latest |