-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into yuwen/example-improvement
- Loading branch information
Showing
1 changed file
with
57 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,57 @@ | ||
name: PR | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
unit-test: | ||
name: Unit Test | ||
runs-on: [runs-on, runner=8cpu-linux-x64, "run-id=${{ github.run_id }}"] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run tests | ||
run: | | ||
cd verifier | ||
cargo test --package sp1-solana:0.1.0 --lib --features sp1-serialize --release | ||
solana-test: | ||
name: Solana Test | ||
runs-on: [runs-on, runner=8cpu-linux-x64, "run-id=${{ github.run_id }}"] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run solana program tests | ||
run: | | ||
cd example/script | ||
cargo test --release | ||
lock-files: | ||
name: "Check lock files" | ||
runs-on: ["runs-on", "runner=8cpu-linux-x64", "run-id=${{ github.run_id }}"] | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
steps: | ||
- name: "Checkout sources" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Update lock files" | ||
run: | | ||
cargo tree | ||
(cd ./example/program && cargo tree) | ||
(cd ./example/script && cargo tree) | ||
- name: "Assert no changes" | ||
run: | | ||
if [ -n "$(git status --porcelain)" ]; then | ||
echo "Lock files not up to date" | ||
exit 1 | ||
fi |