-
Notifications
You must be signed in to change notification settings - Fork 41
53 lines (41 loc) · 1.28 KB
/
ecosystem.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: ecosystem
on: [push, pull_request]
jobs:
rust:
name: shard ${{ matrix.shard }}
runs-on: ubuntu-latest
timeout-minutes: 60
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: full
RUSTFLAGS: -D warnings
if: github.event_name == 'push' || !startsWith(github.event.pull_request.head.label, 'denoland:')
strategy:
matrix:
shard: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
fail-fast: false
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install rust
uses: dsherret/rust-toolchain-file@v1
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Install up Deno
uses: denoland/setup-deno@v1
with:
deno-version: canary
- name: Cache JSR mirror
uses: actions/cache@v4
with:
path: tests/ecosystem/jsr_mirror/
key: ecosystem-jsr-mirror-${{ hashFiles('tests/ecosystem/jsr_versions.json') }}
restore-keys: ecosystem-jsr-mirror-
- name: Mirror JSR
run: deno run -A ./tests/ecosystem/jsr_mirror.ts
- name: Run tests
run: cargo test --test ecosystem
env:
SHARD_INDEX: ${{ matrix.shard }}
SHARD_COUNT: 12