Skip to content

Add dependabot for plugin modules and update some dependencies #447

Add dependabot for plugin modules and update some dependencies

Add dependabot for plugin modules and update some dependencies #447

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
checks:
name: Project Checks
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: 1.21.x
- name: Set env
shell: bash
# TODO(thaJeztah): remove working-directory, path, and GOPATH once project-checks stops needing them; see https://github.com/containerd/nri/pull/53/commits/872fb0ce3dce136f3ae67c068ce78607565194ef#r1324366346
run: |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: src/github.com/containerd/nri
fetch-depth: 25
- uses: containerd/project-checks@434a07157608eeaa1d5c8d4dd506154204cd9401 # v1.1.0
with:
working-directory: src/github.com/containerd/nri
test-build:
name: Check buildability
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: 1.21.x
# needed for wasm plugins
- uses: acifani/setup-tinygo@v2
with:
tinygo-version: "0.34.0"
- name: Set env
shell: bash
run: |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Install protoc and plugins
run: |
sudo make install-protoc
make install-protoc-dependencies install-ttrpc-plugin install-wasm-plugin
- name: Force regeneration of protobuf files on build
run: |
touch pkg/api/api.proto
- run: |
make all
- name: Validate files in git have not been changed
run: |
make validate-repo-no-changes
linters:
name: Linters
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
go: [1.22.x]
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ matrix.go }}
- name: Set env
shell: bash
run: |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: v1.60.3
skip-cache: true
tests:
name: Tests
runs-on: ubuntu-22.04
timeout-minutes: 5
strategy:
matrix:
go: [1.21.x, 1.22.x]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ matrix.go }}
- name: Set env
shell: bash
run: |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- run: |
make install-ginkgo test codecov