forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy remaining buildkite workflows to github actions
- Loading branch information
1 parent
68eed17
commit 79f1c35
Showing
5 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Backward compatibility | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
backward_compat: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
cd pytest | ||
pip3 install --user -r requirements.txt | ||
pwd | ||
ls .. | ||
python3 tests/sanity/backward_compatible.py | ||
ls ../target/debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Database migration | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
db_migration: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
cd pytest | ||
pip3 install --user -r requirements.txt | ||
python3 tests/sanity/db_migration.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Protobuf backwards compatibility | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
protobuf_backward_compat: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: bufbuild/buf-setup-action@v1 | ||
- uses: bufbuild/buf-breaking-action@v1 | ||
with: | ||
against: "https://github.com/near/nearcore.git#ref=${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Sanity checks | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
sanity_checks: | ||
runs-on: ubuntu-22.04-16core | ||
strategy: | ||
fail-fast: false | ||
timeout-minutes: 90 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: cargo build -p neard --bin neard --features nightly | ||
- name: run spin_up_cluster.py | ||
# Note: We're not running spin_up_cluster.py for non-nightly | ||
# because spinning up non-nightly clusters is already covered | ||
# by other steps in the CI, e.g. upgradable. | ||
run: | | ||
cd pytest | ||
python3 -m pip install --progress-bar off --user -r requirements.txt | ||
python3 tests/sanity/spin_up_cluster.py | ||
- run: cargo build -p neard --bin neard | ||
- run: python3 scripts/state/update_res.py check | ||
|
||
- run: python3 scripts/check_nightly.py | ||
- run: python3 scripts/check_pytests.py | ||
- run: python3 scripts/check_fuzzing.py | ||
|
||
- run: python3 scripts/fix_nightly_feature_flags.py | ||
|
||
- run: ./scripts/formatting --check | ||
|
||
- name: check rpc_errors_schema.json | ||
- run: | | ||
rm -f target/rpc_errors_schema.json | ||
cargo check -p near-jsonrpc --features dump_errors_schema | ||
if ! git --no-pager diff --no-index chain/jsonrpc/res/rpc_errors_schema.json target/rpc_errors_schema.json; then | ||
set +x | ||
echo 'The RPC errors schema reflects outdated typing structure; please run' | ||
echo ' ./chain/jsonrpc/build_errors_schema.sh' | ||
exit 1 | ||
fi >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Upgradability | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
upgradability: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
cd pytest | ||
pip3 install --user -r requirements.txt | ||
python3 tests/sanity/upgradable.py |