name: Test on windows

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  ci-test:
    runs-on: windows-latest
    defaults:
      run:
        shell: msys2 {0}
    steps:
      - name: Checkout sources
        uses: actions/checkout@v1

      - uses: msys2/setup-msys2@v2
        with:
          msystem: MINGW64
          update: true
          install: >-
            base-devel
            mingw-w64-x86_64-cfitsio
            mingw-w64-x86_64-pkg-config
            mingw-w64-x86_64-clang

      - name: Checkout sources
        uses: actions/checkout@v1

name: Test on windows

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  ci-test:
    runs-on: windows-latest
    defaults:
      run:
        shell: msys2 {0}
    steps:
      - name: Checkout sources
        uses: actions/checkout@v1

      - uses: msys2/setup-msys2@v2
        with:
          msystem: MINGW64
          update: true
          install: >-
            base-devel
            mingw-w64-x86_64-cfitsio
            mingw-w64-x86_64-pkg-config
            mingw-w64-x86_64-clang

      - name: Install toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true
          components: rustfmt, clippy
          target: x86_64-pc-windows-gnu
          default: true

      - name: Checkout sources
        uses: actions/checkout@v1

      - name: Test the code
        run: cargo test -p fitsio
        continue-on-error: false

Install rust and run fitsio tests
Install rust and run fitsio tests
