diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a91be5dc9..e0b60c7eec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,10 @@ on: jobs: lint: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - name: Checkout code uses: actions/checkout@v5 @@ -21,7 +24,10 @@ jobs: run: yarn lint tests: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - name: Checkout code uses: actions/checkout@v5 @@ -35,12 +41,16 @@ jobs: run: yarn test --coverage --logHeapUsage -w=4 --workerIdleMemoryLimit=1.5G - name: Upload coverage to Codecov + if: matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v5 with: fail_ci_if_error: false build-prod: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - name: Checkout code uses: actions/checkout@v5 @@ -55,7 +65,10 @@ jobs: run: yarn build-symbolicator-cli:quiet licence-check: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - name: Checkout code uses: actions/checkout@v5 @@ -67,7 +80,10 @@ jobs: run: yarn license-check typecheck: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - name: Checkout code uses: actions/checkout@v5 @@ -79,7 +95,10 @@ jobs: run: yarn ts alex: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - name: Checkout code uses: actions/checkout@v5 @@ -91,7 +110,10 @@ jobs: run: yarn test-alex yarn-lock: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - name: Checkout code uses: actions/checkout@v5 diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index a9021d7b33..0000000000 --- a/appveyor.yml +++ /dev/null @@ -1,37 +0,0 @@ -image: Visual Studio 2022 -clone_depth: 5 -environment: - nodejs_version: '22.14' -platform: x64 # flow needs 64b platforms - -branches: - only: - - main - - production - -# Install scripts. (runs after repo cloning) -install: - # 1. Select the right node - # The following command works by fully reinstalling a version of node. It's a - # lot slower than the other command. This needs the full version (eg: 18.12) - - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform - # Use the following command if the wanted version is already part of - # appveyor's windows machines, see https://www.appveyor.com/docs/windows-images-software/#node-js - # This needs the major version only (eg: 18) - # - ps: Install-Product node $env:nodejs_version $env:platform - # 2. Setup the project - - yarn install --frozen-lockfile - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - yarn versions - # run tests - - yarn test-all - - yarn build-prod:quiet - -cache: - - node_modules - -# Don't actually build. -build: off