From 33bda24ac3e11388bd5edb1245954298de613d33 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 19 Nov 2020 17:49:14 -0800 Subject: [PATCH] ci: move verify-deps from travis to github actions Signed-off-by: Kir Kolyshkin --- .github/workflows/validate.yml | 16 ++++++++++++++++ .travis.yml | 4 ---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 585106e92..6548fdd94 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -44,3 +44,19 @@ jobs: (cd ~ && GO111MODULE=on time go get mvdan.cc/sh/v3/cmd/shfmt@v$VERSION) - name: shfmt run: make shfmt + + deps: + name: deps + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: cache go mod and $GOCACHE + uses: actions/cache@v2 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go.sum-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-go.sum- + - name: verify deps + run: make verify-dependencies diff --git a/.travis.yml b/.travis.yml index f62f269d5..4a8ee4dfe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,10 +10,6 @@ cache: - /home/travis/.vagrant.d/boxes jobs: include: - - go: 1.15.x - name: "verify-dependencies" - script: - - make verify-dependencies - go: 1.15.x name: "cgroup-systemd" env: