Add an initcontainer to device-plugin #441
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: ["master"] | |
env: | |
GO_VERSION: "1.21.6" | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
- name: install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
- name: verify license | |
run: hack/verify-license.sh | |
- name: go tidy | |
run: make tidy | |
- name: lint | |
run: make lint | |
- name: import alias | |
run: hack/verify-import-aliases.sh | |
test: | |
name: Unit test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Checkout submodule | |
uses: Mushus/checkout-submodule@v1.0.1 | |
with: | |
basePath: # optional, default is . | |
submodulePath: libvgpu | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
- run: make tidy | |
- run: make test |