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

upgrade github actions image to 22.04 #460

Merged
merged 5 commits into from
Sep 18, 2024
Merged
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
3 changes: 2 additions & 1 deletion .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Setup Go 1.22.3
uses: actions/setup-go@b26d40294f8ad76fcc90b915dac85892322fe62d
Expand All @@ -34,6 +34,7 @@ jobs:
- name: Set up environment
run: |
sudo apt-get update
sudo apt-get remove containerd.io
sudo apt-get install -y gcc libc-dev bash perl curl make docker docker.io

- name: Checkout repository
Expand Down
8 changes: 4 additions & 4 deletions bpfprogs/bpf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func TestBPF_Stop(t *testing.T) {
fields: fields{
Program: models.BPFProgram{
Name: "nfprogram",
Artifact: "ls.tar.gz",
Artifact: "data.tar.gz",
CmdStart: GetTestExecutableName(),
CmdStop: GetTestExecutableName(),
UserProgramDaemon: false,
Expand Down Expand Up @@ -242,7 +242,7 @@ func TestBPF_Start(t *testing.T) {
fields: fields{
Program: models.BPFProgram{
Name: "nfprogram",
Artifact: "ls.tar.gz",
Artifact: "data.tar.gz",
CmdStart: GetTestExecutableName(),
CmdStop: GetTestExecutableName(),
UserProgramDaemon: true,
Expand All @@ -261,7 +261,7 @@ func TestBPF_Start(t *testing.T) {
fields: fields{
Program: models.BPFProgram{
Name: "nfprogram",
Artifact: "ls.tar.gz",
Artifact: "data.tar.gz",
CmdStart: GetTestExecutableName(),
CmdStop: GetTestExecutableName(),
UserProgramDaemon: false,
Expand All @@ -280,7 +280,7 @@ func TestBPF_Start(t *testing.T) {
fields: fields{
Program: models.BPFProgram{
Name: "nfprogram",
Artifact: "ls.tar.gz",
Artifact: "data.tar.gz",
CmdStart: GetTestExecutableName(),
CmdStop: GetTestExecutableName(),
UserProgramDaemon: true,
Expand Down
4 changes: 2 additions & 2 deletions bpfprogs/bpf_test_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ func GetTestNonexecutablePathName() string {
}

func GetTestExecutablePathName() string {
return "/bin/ls"
return "/bin/date"
}

func GetTestExecutablePath() string {
return "/bin"
}

func GetTestExecutableName() string {
return "ls"
return "date"
}

// assertExecutable checks for executable permissions
Expand Down
Loading