From 476e8df05e61d867c39b5e707ce4be74777ba3f0 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Mon, 6 Feb 2023 17:30:22 +0200 Subject: [PATCH] .github: add project check workflow. Add a project check workflow which ATM only runs 'make verify.' Signed-off-by: Krisztian Litkey --- .github/workflows/project-checks.yaml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/project-checks.yaml diff --git a/.github/workflows/project-checks.yaml b/.github/workflows/project-checks.yaml new file mode 100644 index 000000000..49d50b1c7 --- /dev/null +++ b/.github/workflows/project-checks.yaml @@ -0,0 +1,39 @@ +name: Project Checks + +on: + push: + branches: + - main + - "release/**" + - "test/**" + pull_request: + branches: + - main + - "release/**" + +env: + GO_VERSION: "1.19.5" + +jobs: + verify: + name: Minimal PR Verification + runs-on: ubuntu-22.04 + timeout-minutes: 5 + steps: + - name: Set env + shell: bash + run: | + echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV + echo "${{ github.workspace }}/bin" >> $GITHUB_PATH + - uses: actions/checkout@v3 + with: + path: src/github.com/containerd/nri-plugin-collection + fetch-depth: 25 + - uses: actions/setup-go@v3 + with: + go-version: ${{ env.GO_VERSION }} + + - name: make verify + run: | + make verify + working-directory: src/github.com/containerd/nri-plugin-collection