From 3f092c29cf62a77c9eadaa9d7ff9ac28ece3d180 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Tue, 8 Aug 2023 21:11:21 +0300 Subject: [PATCH] .github: add test build to CI workflow. Add a job to do a simple test build as part of the CI workflow. This should make sure that PRs don't break building any of the sample plugins. Signed-off-by: Krisztian Litkey --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47099a7c..5e1c5108 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,30 @@ jobs: 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@v3 + with: + path: src/github.com/containerd/nri + + - uses: actions/setup-go@v3 + with: + go-version: 1.20.x + + - name: Set env + shell: bash + run: | + echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV + echo "${{ github.workspace }}/bin" >> $GITHUB_PATH + + - run: | + make all + working-directory: src/github.com/containerd/nri + linters: name: Linters runs-on: ${{ matrix.os }}