chromium/third_party/rust/chromium_crates_io/vendor/wycheproof-0.4.0/.github/workflows/ci.yml

name: ci

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  rustfmt:
    runs-on: ubuntu-20.04

    steps:
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          profile: minimal
          components: rustfmt

      - uses: actions/checkout@v2

      - run: cargo fmt -- --check
  clippy:
    runs-on: ubuntu-20.04

    steps:
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          profile: minimal
          components: clippy

      - uses: actions/checkout@v2

      - run: cargo clippy -- --deny warnings
  ci:
    runs-on: ubuntu-20.04

    strategy:
      fail-fast: false

      matrix:
        include:
          - toolchain: stable
            target: x86_64-unknown-linux-gnu
          - toolchain: beta
            target: x86_64-unknown-linux-gnu
          - toolchain: nightly
            target: x86_64-unknown-linux-gnu

    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          override: true
          target: ${{ matrix.target }}
          toolchain: ${{ matrix.toolchain }}
      - run: cargo test