|
37 | 37 | with:
|
38 | 38 | access_token: ${{ github.token }}
|
39 | 39 |
|
40 |
| - build-tests-artifacts: |
41 |
| - name: Build test artifacts |
| 40 | + build-test-dependencies: |
| 41 | + name: Build test dependencies |
42 | 42 | runs-on: ubuntu-latest
|
43 | 43 | steps:
|
44 | 44 | - name: Checkout code
|
|
57 | 57 | shared-key: "test_cache"
|
58 | 58 | save-if: ${{ github.ref == 'refs/heads/main' }}
|
59 | 59 |
|
60 |
| - - name: Install nextest |
61 |
| - uses: taiki-e/install-action@nextest |
62 |
| - |
63 | 60 | - name: Install deps
|
64 | 61 | run:
|
65 | 62 | sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
|
|
68 | 65 | run:
|
69 | 66 | cargo build -p vit-servicing-station-cli -p vit-servicing-station-server -p jcli -p jormungandr -p explorer
|
70 | 67 |
|
71 |
| - - name: Build and archive tests |
72 |
| - run: cargo nextest archive --archive-file nextest-archive.tar.zst |
73 |
| - |
74 | 68 | - name: Save external dependencies
|
75 | 69 | uses: actions/cache/save@v3
|
76 | 70 | with:
|
|
82 | 76 | target/debug/explorer
|
83 | 77 | key: deps-${{ github.run_id }}-${{ github.run_attempt }}
|
84 | 78 |
|
| 79 | + |
| 80 | + build-tests-artifacts: |
| 81 | + name: Build test artifacts |
| 82 | + runs-on: ubuntu-latest |
| 83 | + steps: |
| 84 | + - name: Checkout code |
| 85 | + uses: actions/checkout@v3 |
| 86 | + with: |
| 87 | + ref: ${{ github.event.pull_request.head.sha }} |
| 88 | + |
| 89 | + - name: Install rust toolchain |
| 90 | + uses: actions-rs/toolchain@v1 |
| 91 | + with: |
| 92 | + toolchain: ${{env.RUST_LATEST_STABLE_VERSION}} |
| 93 | + |
| 94 | + - name: Cache rust |
| 95 | + uses: Swatinem/rust-cache@v2 |
| 96 | + with: |
| 97 | + shared-key: "test_cache" |
| 98 | + save-if: ${{ github.ref == 'refs/heads/main' }} |
| 99 | + |
| 100 | + - name: Install nextest |
| 101 | + uses: taiki-e/install-action@nextest |
| 102 | + |
| 103 | + - name: Install deps |
| 104 | + run: |
| 105 | + sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config |
| 106 | + |
| 107 | + - name: Build and archive tests |
| 108 | + run: cargo nextest archive --archive-file nextest-archive.tar.zst |
| 109 | + |
85 | 110 | - name: Save test archive
|
86 | 111 | uses: actions/cache/save@v3
|
87 | 112 | with:
|
|
91 | 116 | catalyst-core-tests:
|
92 | 117 | name: Catalyst Core Tests
|
93 | 118 | runs-on: ubuntu-latest
|
94 |
| - needs: build-tests-artifacts |
| 119 | + needs: [build-tests-artifacts, build-test-dependencies] |
95 | 120 | strategy:
|
96 | 121 | matrix:
|
97 | 122 | partition: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
|
0 commit comments