Skip to content

Commit

Permalink
Remove PR check workflow & slightly optimise test action (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antony1060 authored Jan 16, 2024
1 parent 86b463b commit 4931e2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 55 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/pr_check.yml

This file was deleted.

19 changes: 10 additions & 9 deletions .github/workflows/test.yml
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 🚀
Expand All @@ -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:
Expand All @@ -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 }}
Expand All @@ -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

0 comments on commit 4931e2b

Please sign in to comment.