Skip to content

Commit

Permalink
.github: add test build to CI workflow.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
klihub committed Aug 8, 2023
1 parent 040229d commit 3f092c2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 3f092c2

Please sign in to comment.