-
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.
Remove PR check workflow & slightly optimise test action (#48)
- Loading branch information
1 parent
86b463b
commit 4931e2b
Showing
2 changed files
with
10 additions
and
55 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
name: PR Test | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_call: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
name: Test ENState 🚀 | ||
|
@@ -9,6 +16,7 @@ jobs: | |
SCCACHE_REDIS: "redis://redis.redis.svc.cluster.local:6379" | ||
RUSTC_WRAPPER: "sccache" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
suite: [server, worker] | ||
include: | ||
|
@@ -23,22 +31,15 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- run: | | ||
rustup set auto-self-update disable | ||
rustup set auto-self-update disable | ||
rustup toolchain install stable --profile minimal | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
with: | ||
version: "v0.7.4" | ||
|
||
- uses: oven-sh/setup-bun@v1 | ||
|
||
- run: bun install | ||
working-directory: test | ||
|
||
- name: Set-up environment > ${{ matrix.env_file }} | ||
- name: Set-up environment (${{ matrix.env_file }}) | ||
shell: bash | ||
env: | ||
RPC_URL: ${{ secrets.RPC_URL }} | ||
|
@@ -56,5 +57,5 @@ jobs: | |
working-directory: ${{ matrix.suite }} | ||
|
||
- name: Test | ||
run: bun test ${{ matrix.suite }} | ||
run: bun test ${{ matrix.suite }} --timeout 10000 --rerun-each 2 | ||
working-directory: test |