Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 6 additions & 40 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,47 +1,12 @@
name: Test Baton Gitlab Integration

on: pull_request
on:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you can also remove the go-test and go-lint jobs in this file those should be covered in the verfiy.yaml from baton-admin

@mateoHernandez123 mateoHernandez123 Jul 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch — done in 0b124ae

pull_request:
push:
branches:
- main
Comment on lines +5 to +7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Suggestion: This adds a push: branches: [main] trigger, but the only remaining job (test-cloud-version) is now guarded by if: github.event_name == 'pull_request', so it is skipped on push. The push-to-main trigger therefore runs zero jobs and is effectively a no-op. If the intent was to run lint/test on push to main (as main.yaml previously did), that coverage is now missing. (confidence: high)


jobs:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Bug: This PR removes the go-lint and go-test jobs from ci.yaml and also deletes main.yaml, which was the only other place those jobs ran. After this change no workflow in the repo runs golangci-lint or go test on pull requests or on push to maincapabilities_and_config.yaml only does go build, and update-dependencies.yaml is a scheduled maintenance job. The PR description says these jobs are "already covered by ci.yaml," but this same diff removes them. Unless a centralized reusable workflow (not present in this repo) runs lint/test, please keep a go-lint/go-test job on pull_request. (confidence: medium-high)

go-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Run linters
uses: golangci/golangci-lint-action@v8
with:
version: latest
args: --timeout=3m

go-test:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
if: success()
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: go tests
run: go test -v -covermode=count -json ./... > test.json
- name: Print go test results
if: always()
run: cat test.json
- name: annotate go tests
if: always()
uses: guyarb/golang-test-annotations@v0.8.0
with:
test-results: test.json

# this test is commented because it fails to run due to lack of memory in ci test.
# test-DC-version:
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -190,6 +155,7 @@ jobs:
# jq --exit-status ".grants[].principal.id.resource == \"${{ env.USER_ID }}\""

test-cloud-version:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
env:
BATON_LOG_LEVEL: debug
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/main.yaml

This file was deleted.

Loading