Skip to content

Upgrade firecracker from v1.1.0 to v1.4.1 #1466

Upgrade firecracker from v1.1.0 to v1.4.1

Upgrade firecracker from v1.1.0 to v1.4.1 #1466

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
env:
GO111MODULE: on
strategy:
matrix:
os: ['ubuntu-20.04', 'ubuntu-22.04']
go: ['1.17', '1.18', '1.19']
# Build all variants regardless of failures
fail-fast: false
name: ${{ matrix.os }} / Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
# By default, the checkout action only fetches the last commit,
# but we want to run DCO check against all commit messages.
# Assuming that a pull request may have multiple commits,
# fetching the single commit doesn't work for us.
#
# While DCO check (on Makefile) checks latest 20 commits,
# the checkout action automatically creates a merge commit
# for merging "main" into a pull request branch.
# In addition to that, Git cannot recognize merge commits when
# one of the parents is missing.
# So, we will fetch 30 commits just in case to have
# 20 actual commits with associated merged commits.
fetch-depth: 30
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
# Disable Go caching feature when compiling across Linux distributions due to collisions until https://github.com/actions/setup-go/issues/368 is resolved.
cache: false
- run: make
- run: make lint
- name: make test
run: DISABLE_ROOT_TESTS=1 make test
- name: make test as root
run: EXTRAGOARGS='-exec sudo' make test
- run: |
make tidy
git diff --exit-code
- run: |
make proto
git diff --exit-code