--- name: CI on: [push] jobs: lint: name: Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: 1.19 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: version: v1.50 env: VERBOSE: "true" tidy: name: Tidy runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: 1.19 - uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - name: Check if mods are tidy run: make check-tidy test: name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: 1.19 - uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - name: Run tests run: make test env: VERBOSE: "true" release-please: needs: [lint, tidy, test] runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' steps: - uses: google-github-actions/release-please-action@v3 id: release-please with: command: manifest