From 75095b3c90afa17c307f38afcf26cbc640f2d12c Mon Sep 17 00:00:00 2001 From: Marcin Wielgus Date: Mon, 1 Feb 2021 09:06:15 +0100 Subject: [PATCH] Test and verify using Git Actions --- .github/workflows/ci.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000000..f400e5a43abb --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,36 @@ +name: Tests + +on: + - push + - pull_request + +env: + GOPATH: ${{ github.workspace }}/go + +jobs: + test-and-verify: + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.15 + + - uses: actions/checkout@v2 + with: + path: ${{ env.GOPATH }}/src/k8s.io/autoscaler + + - name: Apt-get + run: sudo apt-get install libseccomp-dev -qq + + - name: Prepare + working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler + run: hack/install-verify-tools.sh + + - name: Verify + working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler + run: hack/verify-all.sh -v + + - name: Test + working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler + run: hack/for-go-proj.sh test