name: Windows

on:
  push:
    branches: [ "main" ]
    paths-ignore:
    - 'LICENSE'
    - 'README.md'
    - 'RELEASE_CHECKLIST.md'

env:
  CARGO_TERM_COLOR: always

jobs:
  build_and_test:
    name: Build and test
    runs-on: windows-latest

    steps:
    - run: git config --global core.autocrlf false

    - name: "Checkout repository"
      uses: actions/checkout@v4
    
    - name: Build
      run: cargo build --all --locked --verbose
    
    - name: Run tests
      run: cargo test --verbose