Skip to content

[Chore] Fix upgrade test to work for minor versions without operator,… #4339

[Chore] Fix upgrade test to work for minor versions without operator,…

[Chore] Fix upgrade test to work for minor versions without operator,… #4339

name: "Continuous Integration"
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: {}
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: "basic checks"
run: make ci
- name: "upload coverage report"
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
files: cover.out
flags: unittests
name: codecov-tempo-operator
fail_ci_if_error: false
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
security:
name: Security
runs-on: ubuntu-22.04
permissions:
actions: read
security-events: write # write CodeQL alerts
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v3
with:
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@0499de31b99561a6d14a36a5f662c2a54f91beee # v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v3
lint:
name: Code standards (linting)
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
args: -v
version: v2.2.1