Repository navigation
feat: fix ssl mode and add ghcr (#133) #119
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-server | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'server/**' | |
| - '.github/workflows/ci-server.yaml' | |
| pull_request: | |
| paths: | |
| - 'server/**' | |
| - '.github/workflows/ci-server.yaml' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./server | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 'stable' | |
| - name: Build | |
| run: | | |
| go mod tidy | |
| go build -v ./... | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: v1.64.8 | |
| install-mode: goinstall | |
| working-directory: ./server | |
| - name: Unit test | |
| run: | | |
| go mod tidy | |
| go test -v ./... | |
| - name: E2E Test | |
| run: | | |
| go mod tidy | |
| cd e2e && make e2e |