tests: Add noble-curves secp256k1 point validity and de/encoding test… #108
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
name: "CI" | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
lint: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
with: | |
version: "nightly" | |
- name: "Check crysol formatting" | |
run: "forge fmt --check" | |
- name: "Check examples formatting" | |
run: "forge fmt ./examples --check" | |
tests-unit: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
with: | |
version: "nightly" | |
- name: "Run Forge build" | |
run: "forge build" | |
id: "build" | |
- name: "Run unit tests" | |
run: "FOUNDRY_PROFILE=ci forge test -vvv --nmt \"Property\" --nmc \"Examples\"" | |
id: "test-unit" | |
tests-property: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
with: | |
version: "nightly" | |
- name: "Run Forge build" | |
run: "forge build" | |
id: "build" | |
- name: "Run property-based tests" | |
run: "FOUNDRY_PROFILE=ci forge test -vvv --mt \"Property\" --nmc \"Examples\"" | |
id: "test-property" | |
tests-example: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
with: | |
version: "nightly" | |
- name: "Run Forge build" | |
run: "forge build" | |
id: "build" | |
- name: "Run example tests" | |
run: "FOUNDRY_PROFILE=ci forge test -vvv --mc \"Examples\"" | |
id: "test-example" |