diff --git a/.github/workflows/common-tests.yml b/.github/workflows/common-tests.yml new file mode 100644 index 000000000..d749e1980 --- /dev/null +++ b/.github/workflows/common-tests.yml @@ -0,0 +1,33 @@ +name: common/ Tests + +on: + push: + branches: + - develop + paths: + - "common/**" + + pull_request: + paths: + - "common/**" + + workflow_dispatch: + +jobs: + test-common: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + + - name: Test Dependencies + uses: ./.github/actions/test-dependencies + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Run Tests + run: | + GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ + -p std-shims \ + -p zalloc \ + -p serai-db \ + -p serai-env diff --git a/Cargo.lock b/Cargo.lock index b3811ad4c..bb132e4cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10287,7 +10287,7 @@ dependencies = [ "once_cell", "regex", "sharded-slab", - "smallvec 1.11.0", + "smallvec", "thread_local", "tracing", "tracing-core",