Skip to content

Commit

Permalink
.github: add project check workflow.
Browse files Browse the repository at this point in the history
Add a project check workflow which ATM only runs 'make verify.'

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub authored and jukkar committed Feb 7, 2023
1 parent 9144793 commit 476e8df
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/project-checks.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 476e8df

Please sign in to comment.