name: Go Build on: push: branches: - main pull_request: branches: - main jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.20 - name: Install external dependencies run: go mod download - name: Build run: go build -o go-cdn