diff --git a/.github/workflows/coins-tests.yml b/.github/workflows/coins-tests.yml new file mode 100644 index 00000000..c53ad929 --- /dev/null +++ b/.github/workflows/coins-tests.yml @@ -0,0 +1,31 @@ +name: coins/ Tests + +on: + push: + branches: + - develop + paths: + - "common/**" + - "crypto/**" + - "coins/**" + pull_request: + workflow_dispatch: + +jobs: + test-coins: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Test Dependencies + uses: ./.github/actions/test-dependencies + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Run Tests + run: | + GITHUB_CI=true cargo test --all-features \ + -p bitcoin-serai \ + -p ethereum-serai \ + -p monero-generators \ + -p monero-serai diff --git a/.github/workflows/common-tests.yml b/.github/workflows/common-tests.yml new file mode 100644 index 00000000..9c12118f --- /dev/null +++ b/.github/workflows/common-tests.yml @@ -0,0 +1,29 @@ +name: common/ Tests + +on: + push: + branches: + - develop + paths: + - "common/**" + pull_request: + workflow_dispatch: + +jobs: + test-common: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Test Dependencies + uses: ./.github/actions/test-dependencies + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Run Tests + run: | + GITHUB_CI=true cargo test --all-features \ + -p std-shims \ + -p zalloc \ + -p serai-db \ + -p serai-env diff --git a/.github/workflows/crypto-tests.yml b/.github/workflows/crypto-tests.yml new file mode 100644 index 00000000..d2a6a0b6 --- /dev/null +++ b/.github/workflows/crypto-tests.yml @@ -0,0 +1,37 @@ +name: crypto/ Tests + +on: + push: + branches: + - develop + paths: + - "common/**" + - "crypto/**" + pull_request: + workflow_dispatch: + +jobs: + test-crypto: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Test Dependencies + uses: ./.github/actions/test-dependencies + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Run Tests + run: | + GITHUB_CI=true cargo test --all-features \ + -p flexible-transcript \ + -p ff-group-tests \ + -p dalek-ff-group \ + -p minimal-ed448 \ + -p ciphersuite \ + -p multiexp \ + -p schnorr-signatures \ + -p dleq \ + -p dkg \ + -p modular-frost \ + -p frost-schnorrkel diff --git a/.github/workflows/no-std.yml b/.github/workflows/no-std.yml index a90048f0..6e1cd508 100644 --- a/.github/workflows/no-std.yml +++ b/.github/workflows/no-std.yml @@ -4,7 +4,13 @@ on: push: branches: - develop + paths: + - "common/**" + - "crypto/**" + - "coins/**" + - "tests/no-std/**" pull_request: + workflow_dispatch: jobs: build: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c052bcaf..d0399382 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,71 +4,18 @@ on: push: branches: - develop + paths: + - "common/**" + - "crypto/**" + - "coins/**" + - "message-queue/**" + - "processor/**" + - "coordinator/**" + - "substrate/**" pull_request: workflow_dispatch: jobs: - test-common: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Test Dependencies - uses: ./.github/actions/test-dependencies - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Run Tests - run: | - GITHUB_CI=true cargo test --all-features \ - -p std-shims \ - -p zalloc \ - -p serai-db \ - -p serai-env - - test-crypto: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Test Dependencies - uses: ./.github/actions/test-dependencies - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Run Tests - run: | - GITHUB_CI=true cargo test --all-features \ - -p flexible-transcript \ - -p ff-group-tests \ - -p dalek-ff-group \ - -p minimal-ed448 \ - -p ciphersuite \ - -p multiexp \ - -p schnorr-signatures \ - -p dleq \ - -p dkg \ - -p modular-frost \ - -p frost-schnorrkel - - test-coins: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Test Dependencies - uses: ./.github/actions/test-dependencies - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Run Tests - run: | - GITHUB_CI=true cargo test --all-features \ - -p bitcoin-serai \ - -p ethereum-serai \ - -p monero-generators \ - -p monero-serai - test-infra: runs-on: ubuntu-latest steps: