Skip to content

Commit

Permalink
Update gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Sep 21, 2023
1 parent f438162 commit 90d7f70
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 21 deletions.
10 changes: 10 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -22,6 +31,7 @@ flag_management:
threshold: 0.5%
- type: patch
target: auto
threshold: 1%
individual_flags:
- name: tm2
paths:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/gnoland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version:
goversion:
- "1.20.x"
- "1.21.x"
goarch: [ "amd64" ]
Expand All @@ -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
Expand All @@ -47,7 +47,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version:
goversion:
- "1.20.x"
- "1.21.x"
args:
Expand All @@ -60,23 +60,22 @@ 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
run: |
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:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/gnovm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -46,7 +46,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version:
goversion:
- "1.20.x"
- "1.21.x"
args:
Expand All @@ -64,20 +64,19 @@ 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
run: |
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' }}
13 changes: 6 additions & 7 deletions .github/workflows/tm2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version:
goversion:
- "1.20.x"
- "1.21.x"
goarch: [ "amd64" ]
Expand All @@ -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
Expand All @@ -40,7 +40,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version:
goversion:
- "1.20.x"
- "1.21.x"
args:
Expand All @@ -53,20 +53,19 @@ 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
run: |
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' }}

0 comments on commit 90d7f70

Please sign in to comment.