Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci bump #1025

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Ci bump #1025

wants to merge 4 commits into from

Commits on Oct 22, 2024

  1. ci/gha: bump github actions to latest versions

    Bump
     - actions/checkout v2 -> v4
     - actions/setup-go v2 -> v5
    
    Signed-off-by: Kir Kolyshkin <[email protected]>
    kolyshkin committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    81f3396 View commit details
    Browse the repository at this point in the history
  2. ci/gha: add build step

    Make sure CI builds everything that is (or will be) there to build.
    
    In particular, this ensures that cmd/ipset-test is buildable.
    
    Signed-off-by: Kir Kolyshkin <[email protected]>
    kolyshkin committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    0dcaba4 View commit details
    Browse the repository at this point in the history
  3. ci/gha: use go test -exec sudo

    Running "sudo go test" results in a different environment, so go has to
    recompile everything again.
    
    Use "go test -exec sudo" so test would compile as current user (so that
    go build cache is reused), then run as root.
    
    The arguments added to sudo are:
     -n: do not ask for password
     --preserve-env CI,PATH: preserve these environment variables
    
    Signed-off-by: Kir Kolyshkin <[email protected]>
    kolyshkin committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    768583e View commit details
    Browse the repository at this point in the history
  4. ci/gha: test on different Go and Ubuntu versions

    Add test matrix to run tests on latest Go and different Ubuntu versions
    
    Signed-off-by: Kir Kolyshkin <[email protected]>
    kolyshkin committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    2d3ce5c View commit details
    Browse the repository at this point in the history