Skip to content
Snippets Groups Projects
Unverified Commit afe2baf3 authored by Mario Macias's avatar Mario Macias Committed by GitHub
Browse files

NETOBSERV-743: update build image & CI tests to Go 1.18 (4.12 backport) (#72)

* NETOBSERV-743: update build image & CI tests to Go 1.18

* enable tests triggering
parent 901ee03f
No related branches found
No related tags found
No related merge requests found
...@@ -2,9 +2,9 @@ name: Pull request checks ...@@ -2,9 +2,9 @@ name: Pull request checks
on: on:
push: push:
branches: [ main ] branches: [ 'main', 'release-*' ]
pull_request: pull_request:
branches: [ main ] branches: [ 'main', 'release-*' ]
jobs: jobs:
test: test:
...@@ -12,13 +12,13 @@ jobs: ...@@ -12,13 +12,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go: ['1.17'] go: ['1.18']
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.17 go-version: 1.18
- name: Install make - name: Install make
run: sudo apt -y install make run: sudo apt -y install make
- name: Run verification and tests - name: Run verification and tests
......
...@@ -3,9 +3,9 @@ name: pull request - e2e tests ...@@ -3,9 +3,9 @@ name: pull request - e2e tests
#todo: check caching dependencies: https://github.com/actions/cache #todo: check caching dependencies: https://github.com/actions/cache
on: on:
push: push:
branches: [ main ] branches: [ 'main', 'release-*' ]
pull_request: pull_request:
branches: [ main ] branches: [ 'main', 'release-*' ]
jobs: jobs:
e2e-tests: e2e-tests:
...@@ -13,7 +13,7 @@ jobs: ...@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go: ['1.17'] go: ['1.18']
steps: steps:
- name: install make - name: install make
run: sudo apt-get install make run: sudo apt-get install make
......
...@@ -17,7 +17,7 @@ jobs: ...@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
go: ['1.17'] go: ['1.18']
steps: steps:
- name: install make - name: install make
run: sudo apt-get install make run: sudo apt-get install make
......
...@@ -16,7 +16,7 @@ jobs: ...@@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
go: ['1.17'] go: ['1.18']
steps: steps:
- name: install make - name: install make
run: sudo apt-get install make run: sudo apt-get install make
......
...@@ -16,7 +16,7 @@ jobs: ...@@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
go: ['1.17'] go: ['1.18']
steps: steps:
- name: checkout - name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
......
...@@ -21,7 +21,7 @@ linters: ...@@ -21,7 +21,7 @@ linters:
- varcheck - varcheck
linters-settings: linters-settings:
stylecheck: stylecheck:
go: "1.17" go: "1.18"
gocritic: gocritic:
enabled-checks: enabled-checks:
- hugeParam - hugeParam
......
# Build the manager binary # Build the manager binary
FROM registry.access.redhat.com/ubi8/go-toolset:1.17.12 as builder FROM registry.access.redhat.com/ubi8/go-toolset:1.18.4 as builder
ARG SW_VERSION="unknown" ARG SW_VERSION="unknown"
ARG GOVERSION="1.17.8" ARG GOVERSION="1.18.4"
WORKDIR /opt/app-root WORKDIR /opt/app-root
......
# this file has to be built from the project root directory # this file has to be built from the project root directory
FROM golang:1.17 as builder FROM golang:1.18 as builder
WORKDIR /app WORKDIR /app
......
FROM fedora:35 FROM fedora:35
ARG GOVERSION="1.17.12" ARG GOVERSION="1.18.4"
ARG PROTOCVERSION="3.19.4" ARG PROTOCVERSION="3.19.4"
# Installs dependencies that are required to compile eBPF programs # Installs dependencies that are required to compile eBPF programs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment