From 8ac78120555a5dee136960f7d4ec3ba731e22a07 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 5 Mar 2021 09:09:21 +0300 Subject: [PATCH] update gh actions Signed-off-by: Vasiliy Tolstov --- .github/renovate.json | 1 - .github/workflows/build.yml | 26 +++++--------------------- .github/workflows/pr.yml | 26 +++++--------------------- 3 files changed, 10 insertions(+), 43 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index c597bf3..52d2918 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -2,7 +2,6 @@ "extends": [ "config:base" ], - "postUpdateOptions": ["gomodTidy"], "packageRules": [ { "matchUpdateTypes": ["minor", "patch", "pin", "digest"], diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4caf631..eb19b68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: build on: - push: + push: branches: - master jobs: @@ -12,36 +12,20 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.16 + - name: checkout + uses: actions/checkout@v2 - name: cache uses: actions/cache@v2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go- - - name: sdk checkout - uses: actions/checkout@v2 - - name: sdk deps + - name: deps run: go get -v -t -d ./... - - name: sdk test + - name: test env: INTEGRATION_TESTS: yes run: go test -mod readonly -v ./... - - name: tests checkout - uses: actions/checkout@v2 - with: - repository: unistack-org/micro-tests - ref: refs/heads/master - path: micro-tests - fetch-depth: 1 - - name: tests deps - run: | - cd micro-tests - go mod edit -replace="github.com/unistack-org/micro/v3=../" - go get -v -t -d ./... - - name: tests test - env: - INTEGRATION_TESTS: yes - run: cd micro-tests && go test -mod readonly -v ./... lint: name: lint runs-on: ubuntu-latest diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 25307f5..545baf2 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,36 +12,20 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.16 + - name: checkout + uses: actions/checkout@v2 - name: cache uses: actions/cache@v2 with: - path: ~/go/pkg + path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go- - - name: sdk checkout - uses: actions/checkout@v2 - - name: sdk deps + - name: deps run: go get -v -t -d ./... - - name: sdk test + - name: test env: INTEGRATION_TESTS: yes run: go test -mod readonly -v ./... - - name: tests checkout - uses: actions/checkout@v2 - with: - repository: unistack-org/micro-tests - ref: refs/heads/master - path: micro-tests - fetch-depth: 1 - - name: tests deps - run: | - cd micro-tests - go mod edit -replace="github.com/unistack-org/micro/v3=../" - go get -v -t -d ./... - - name: tests test - env: - INTEGRATION_TESTS: yes - run: cd micro-tests && go test -mod readonly -v ./... lint: name: lint runs-on: ubuntu-latest