name: Features

on:
  pull_request:
    branches: [main]
  workflow_dispatch:

jobs:
  features:
    name: Test Feature Combinations
    runs-on: ubuntu-latest
    strategy:
      fail-fast: true
    steps:
      - uses: actions/checkout@v2
      - name: Install latest nightly
        uses: actions-rs/toolchain@v1
        with:
            toolchain: nightly
            override: true
            components: rustfmt, clippy
      - run: ci/test.sh
      - run: NIGHTLY=1 NO_STD=1 ci/test.sh
