From 90d7f700dbddc21d9c156c04c2b33a975eeffd3c Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 14:19:47 +0200 Subject: [PATCH] Update gh-pages.yml --- .github/codecov.yml | 10 ++++++++++ .github/workflows/benchmark.yml | 1 + .github/workflows/gh-pages.yml | 2 ++ .github/workflows/gnoland.yml | 13 ++++++------- .github/workflows/gnovm.yml | 13 ++++++------- .github/workflows/tm2.yml | 13 ++++++------- 6 files changed, 31 insertions(+), 21 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index 08f1e48cc46..3c6af9e47d0 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -12,6 +12,15 @@ comment: coverage: round: down precision: 2 + status: + project: + default: + target: auto + threshold: 0.5% + patch: + default: + target: auto + threshold: 1% flag_management: default_rules: @@ -22,6 +31,7 @@ flag_management: threshold: 0.5% - type: patch target: auto + threshold: 1% individual_flags: - name: tm2 paths: diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 8b8c6f618c5..63490c0bfa1 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -10,6 +10,7 @@ on: type: string jobs: benchmarks: + if: ${{ github.repository == 'gnolang/gno' }} runs-on: [self-hosted, Linux, X64, benchmark-v1] steps: - name: checkout diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2233132e745..8f57bec80a1 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -17,6 +17,7 @@ concurrency: jobs: build: + if: ${{ github.repository == 'gnolang/gno' }} # Alternatively, validate based on provided tokens and permissions. runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -30,6 +31,7 @@ jobs: path: ./misc/gendocs/godoc deploy: + if: ${{ github.repository == 'gnolang/gno' }} # Alternatively, validate based on provided tokens and permissions. runs-on: ubuntu-latest environment: name: github-pages diff --git a/.github/workflows/gnoland.yml b/.github/workflows/gnoland.yml index 902d0f41954..61ae95516bd 100644 --- a/.github/workflows/gnoland.yml +++ b/.github/workflows/gnoland.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: + goversion: - "1.20.x" - "1.21.x" goarch: [ "amd64" ] @@ -37,7 +37,7 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go-version }} + goversion: ${{ matrix.goversion }} - uses: actions/checkout@v4 - name: go install working-directory: gno.land @@ -47,7 +47,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: + goversion: - "1.20.x" - "1.21.x" args: @@ -60,7 +60,7 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go-version }} + goversion: ${{ matrix.goversion }} - uses: actions/checkout@v4 - name: test working-directory: gno.land @@ -68,15 +68,14 @@ jobs: export GOPATH=$HOME/go export GOTEST_FLAGS="-v -p 1 -timeout=30m -coverprofile=coverage.out -covermode=atomic" make ${{ matrix.args }} - - if: runner.os == 'Linux' + - if: ${{ runner.os == 'Linux' && matrix.goversion == "1.21.x" }} uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} name: gno.land flags: gno.land-${{matrix.args}} files: ./gno.land/coverage.out - #fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }} - fail_ci_if_error: false # temporarily + fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }} docker-integration: strategy: diff --git a/.github/workflows/gnovm.yml b/.github/workflows/gnovm.yml index e545e4ac6db..bfe99dcadda 100644 --- a/.github/workflows/gnovm.yml +++ b/.github/workflows/gnovm.yml @@ -23,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: # two latest versions + goversion: # two latest versions - "1.20.x" - "1.21.x" goenv: # TODO: replace with pairs, so it's easier to read in the GH interface. @@ -36,7 +36,7 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go-version }} + goversion: ${{ matrix.goversion }} - uses: actions/checkout@v4 - name: go install working-directory: gnovm @@ -46,7 +46,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: + goversion: - "1.20.x" - "1.21.x" args: @@ -64,7 +64,7 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go-version }} + goversion: ${{ matrix.goversion }} - uses: actions/checkout@v4 - name: test working-directory: gnovm @@ -72,12 +72,11 @@ jobs: export GOPATH=$HOME/go export GOTEST_FLAGS="-v -p 1 -timeout=30m -coverprofile=coverage.out -covermode=atomic" make ${{ matrix.args }} - - if: runner.os == 'Linux' + - if: ${{ runner.os == 'Linux' && matrix.goversion == "1.21.x" }} uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} name: gnovm flags: gnovm-${{matrix.args}} files: ./gnovm/coverage.out - #fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }} - fail_ci_if_error: false # temporarily + fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }} diff --git a/.github/workflows/tm2.yml b/.github/workflows/tm2.yml index 1be5bedc6c9..b6991b08118 100644 --- a/.github/workflows/tm2.yml +++ b/.github/workflows/tm2.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: + goversion: - "1.20.x" - "1.21.x" goarch: [ "amd64" ] @@ -30,7 +30,7 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go-version }} + goversion: ${{ matrix.goversion }} - uses: actions/checkout@v4 - name: go install working-directory: tm2 @@ -40,7 +40,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: + goversion: - "1.20.x" - "1.21.x" args: @@ -53,7 +53,7 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go-version }} + goversion: ${{ matrix.goversion }} - uses: actions/checkout@v4 - name: test working-directory: tm2 @@ -61,12 +61,11 @@ jobs: export GOPATH=$HOME/go export GOTEST_FLAGS="-v -p 1 -timeout=30m -coverprofile=coverage.out -covermode=atomic" make ${{ matrix.args }} - - if: runner.os == 'Linux' + - if: ${{ runner.os == 'Linux' && matrix.goversion == "1.21.x" }} uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} name: tm2 flags: tm2-${{matrix.args}} files: ./tm2/coverage.out - #fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }} - fail_ci_if_error: false # temporarily + fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}