tod 0.11.2

An unofficial Todoist command-line client
name: Dependabot Full CI

permissions:
  contents: read

on:
  # Triggered for PRs created or updated by Dependabot or manually.
  pull_request:
    types: [opened, synchronize, reopened]
  workflow_dispatch:

jobs:
  test:
    name: Test on ${{ matrix.name }}
    if: |
      github.event_name == 'workflow_dispatch' ||
      (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]')
    runs-on: ${{ matrix.os }}

    strategy:
      fail-fast: false
      matrix:
        include:
          - name: Linux (AMD64)
            os: ubuntu-latest

          - name: Linux (ARM64)
            os: ubuntu-24.04-arm

          - name: macOS (ARM64)
            os: macos-latest

          - name: Windows (AMD64)
            os: windows-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v6

      - name: Install Rust Toolchain
        run: rustup toolchain install

      - name: Install cargo-nextest
        uses: taiki-e/install-action@nextest

      - name: Cache cargo
        uses: Swatinem/rust-cache@v2

      - name: Run cargo nextest
        run: cargo nextest run