flytrap 0.2.1

Query the Fly.io runtime environment
Documentation
name: Rust

on:
  push:
    branches: ["main"]
  pull_request:

jobs:
  format:
    name: Format
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: moonrepo/setup-rust@v1
        with:
          components: rustfmt
      - name: Check formatting
        run: >-
          cargo fmt --all --check
  lint:
    name: Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: moonrepo/setup-rust@v1
        with:
          components: clippy
      - name: Run linter
        run: >-
          cargo clippy --all-features
      - name: Run linter (demo app)
        run: >-
          cargo clippy
        working-directory: ./demo
  test:
    name: Test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: moonrepo/setup-rust@v1
      - name: Run tests
        run: >-
          cargo test
      - name: Run tests (all features)
        run: >-
          cargo test --all-features
      - name: Run tests (minimal features)
        run: >-
          cargo test --no-default-features --features 'dns environment http' --all-targets