diff --git a/.github/workflows/capabilities.yaml b/.github/workflows/capabilities.yaml index c74ef351..9ca07b12 100644 --- a/.github/workflows/capabilities.yaml +++ b/.github/workflows/capabilities.yaml @@ -16,7 +16,7 @@ jobs: token: ${{ secrets.RELENG_GITHUB_TOKEN }} - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: 'go.mod' @@ -24,6 +24,8 @@ jobs: run: go build -o connector ./cmd/baton-opsgenie - name: Run and save output + env: + BATON_API_KEY: ${{ secrets.BATON_API_KEY }} run: ./connector capabilities > baton_capabilities.json - name: Commit changes diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 502148bb..c8273ad3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,13 +5,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: 1.22.x - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run linters - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: version: latest args: --timeout=3m @@ -24,15 +24,31 @@ jobs: steps: - name: Install Go if: success() - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: go tests run: go test -v -covermode=count -json ./... > test.json - name: annotate go tests if: always() uses: guyarb/golang-test-annotations@v0.5.1 with: - test-results: test.json \ No newline at end of file + test-results: test.json + test: + runs-on: ubuntu-latest + env: + BATON_API_KEY: ${{ secrets.BATON_API_KEY }} + BATON_LOG_LEVEL: debug + steps: + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: 1.22.x + - name: Checkout code + uses: actions/checkout@v4 + - name: Build baton-opsgenie + run: go build ./cmd/baton-opsgenie + - name: Run baton-opsgenie + run: ./baton-opsgenie diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b0c1ce13..ee3159ea 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -8,13 +8,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: 1.22.x - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run linters - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: version: latest args: --timeout=3m @@ -27,11 +27,11 @@ jobs: steps: - name: Install Go if: success() - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: go tests run: go test -v -covermode=count -json ./... > test.json - name: annotate go tests diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3aef76c7..6ee21410 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,11 +10,11 @@ jobs: runs-on: macos-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: 1.22.x - name: Set up Gon @@ -37,11 +37,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: 1.22.x - name: Docker Login