diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e6ccd3f..e44b1684 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,14 +2,19 @@ name: Continuous Integration on: pull_request: - branches: ['**'] + branches: ["**"] push: - branches: ['main'] + branches: ["main"] jobs: build: name: Build and Test - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + steps: - uses: actions/checkout@v6 - uses: actions/setup-java@v5 @@ -22,7 +27,8 @@ jobs: scala-cli-version: 1.12.2 - run: scala-cli fmt --check . - run: scala-cli --server=false build.scala - - if: github.event_name != 'pull_request' + + - if: github.event_name != 'pull_request' && matrix.os == 'ubuntu-latest' uses: peaceiris/actions-gh-pages@v4.0.0 with: github_token: ${{ secrets.GITHUB_TOKEN }}