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