Skip to content

chore(components): Allow scroll touch dragging on all platforms (#1897) #1926

chore(components): Allow scroll touch dragging on all platforms (#1897)

chore(components): Allow scroll touch dragging on all platforms (#1897) #1926

Workflow file for this run

name: Rust Test
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
concurrency:
group: rust-test-${{ matrix.os }}-${{ github.ref_name }}
cancel-in-progress: true
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 2
submodules: true
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1
- name: Install nextest
uses: taiki-e/install-action@80e6af7a2ec7f280fffe2d0a9d3a12a9d11d86e9 # v2.75.1
with:
tool: nextest
- name: Install just
uses: taiki-e/install-action@80e6af7a2ec7f280fffe2d0a9d3a12a9d11d86e9 # v2.75.1
with:
tool: just
- name: Install linux dependencies
if: runner.os == 'Linux'
run: sudo apt update && sudo apt install build-essential libssl-dev pkg-config libglib2.0-dev libgtk-3-dev libudev-dev libxdo-dev libwebkit2gtk-4.1-dev
- name: Remove unused programs in linux
if: runner.os == 'Linux'
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
- name: Run Linux tests
if: runner.os == 'Linux'
run: |
export RUSTFLAGS="-Cinstrument-coverage"
export RUSTDOCFLAGS="-Cinstrument-coverage"
export LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw'
just t
- name: Run MacOS and Windows tests
if: runner.os != 'Linux'
run: just t
- name: Run coverage
if: runner.os == 'Linux'
run: |
rustup component add llvm-tools-preview
curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
./grcov . --binary-path ./target/debug/deps -s . -t lcov --branch --ignore-not-existing --ignore "../*" --ignore "/*" -o cov.lcov
- uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
if: runner.os == 'Linux'
with:
token: ${{ secrets.CODECOV_TOKEN }}