Merge pull request #30 from zalando/add-response-timestamps #47
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: Lightstep Receiver build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.23.3 | |
| cache: false | |
| - run: go install golang.org/x/lint/golint@latest | |
| - run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | |
| - name: Check | |
| run: make check | |
| - name: Build | |
| run: make build | |
| release: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| needs: build | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Get next version | |
| uses: reecetech/version-increment@2024.10.1 | |
| id: version | |
| with: | |
| scheme: semver | |
| increment: patch | |
| - name: Create Tag and Release | |
| id: create_release | |
| uses: actions/create-release@latest | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| with: | |
| tag_name: v${{ steps.version.outputs.version }} | |
| release_name: Release v${{ steps.version.outputs.version }} | |
| draft: false | |
| prerelease: false |