feat: add daemon mode for background execution (#1576) #1228
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 | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| goarch: [amd64, arm64, riscv64] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Test | |
| run: | | |
| # Run tests only when GOARCH is amd64, otherwize run builds only. | |
| if [ "${{ matrix.goarch }}" = "amd64" ]; then | |
| make build test | |
| else | |
| GOARCH=${{ matrix.goarch }} make build | |
| fi | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: ddns-go_${{ matrix.goarch }} | |
| path: ddns-go |