name: CI on: push: branches: [main] pull_request: branches: [main] jobs: format: runs-on: ubuntu-latest steps: - name: Install make run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: go-version-file: go.mod token: ${{ secrets.GH_API_TOKEN }} - run: make format - run: git diff --exit-code goreleaser-lint: runs-on: ubuntu-latest steps: - name: Install make run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make - uses: actions/checkout@v7 - uses: goreleaser/goreleaser-action@v6.4.0 with: install-only: true - run: make check lint: runs-on: ubuntu-latest steps: - name: Install make run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: go-version-file: go.mod token: ${{ secrets.GH_API_TOKEN }} - run: make ci-lint test: runs-on: ubuntu-latest steps: - name: Install make run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: go-version-file: go.mod token: ${{ secrets.GH_API_TOKEN }} - run: make test build: runs-on: ubuntu-latest steps: - name: Install make run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: go-version-file: go.mod token: ${{ secrets.GH_API_TOKEN }} - uses: goreleaser/goreleaser-action@v6.4.0 with: install-only: true - run: make build