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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: ci
# Phase 27.x.browser-windows-discovery S12 — pull-request +
# push validation. Runs `cargo nextest run --lib` on a 3-OS
# matrix so the per-platform discovery cfg-branches
# (`bundled_candidates`, `path_lookup_names` in
# `src/chrome/discovery.rs`) all stay green when a contributor
# changes the candidate lists.
#
# Tag-driven release artifacts live in `release.yml`. This
# workflow is test-only — no publishing, no artifact upload.
on:
push:
branches:
pull_request:
branches:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
CARGO_NET_RETRY: "10"
CARGO_NET_TIMEOUT: "60"
jobs:
test:
name: cargo nextest (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-14
- windows-latest
steps:
- name: Checkout plugin
uses: actions/checkout@v4
with:
path: nexo-plugin-browser
# Path deps in `Cargo.toml` reference `../proyecto/...`
# — checkout the daemon workspace alongside so cargo can
# resolve them. Mirrors `release.yml`. Same workflow on
# every OS so a Windows-specific path-dep bug surfaces
# here, not at tag time.
- name: Checkout proyecto (path-dep workspace)
uses: actions/checkout@v4
with:
repository: lordmacu/nexo-rs
path: proyecto
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: nexo-plugin-browser
key: ci-${{ matrix.os }}-${{ hashFiles('nexo-plugin-browser/Cargo.lock') }}
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: cargo build (lib)
working-directory: nexo-plugin-browser
run: cargo build --lib --tests
- name: cargo nextest run (lib)
working-directory: nexo-plugin-browser
run: cargo nextest run --lib --no-fail-fast