From 2caa0aa8c7cc9aef89a416127f376d551a24d207 Mon Sep 17 00:00:00 2001 From: Bobby Galli Date: Tue, 21 May 2024 09:26:37 -0400 Subject: [PATCH] fix: add windows compatibility (#114) * fix: add windows compatibility * chore: test on ubuntu, macos, and windows runners --- .github/workflows/pr.yaml | 11 +++++++---- action.yaml | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 10b9ec8..640ad4c 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -6,7 +6,10 @@ on: jobs: test-my-action: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] steps: - name: ☑️ Checkout uses: actions/checkout@v3 @@ -14,9 +17,9 @@ jobs: - name: 📦 Symbols uses: ./ with: - clientId: "${{ secrets.SYMBOL_UPLOAD_CLIENT_ID }}" - clientSecret: "${{ secrets.SYMBOL_UPLOAD_CLIENT_SECRET }}" - database: "${{ secrets.BUGSPLAT_DATABASE }}" + clientId: ${{ secrets.SYMBOL_UPLOAD_CLIENT_ID }} + clientSecret: ${{ secrets.SYMBOL_UPLOAD_CLIENT_SECRET }} + database: ${{ secrets.BUGSPLAT_DATABASE }} application: "symbol-upload-test" version: "1.0" directory: "spec/support" diff --git a/action.yaml b/action.yaml index 61fe400..9398ded 100644 --- a/action.yaml +++ b/action.yaml @@ -59,11 +59,11 @@ runs: node-version: ${{ inputs.node-version }} - name: Install symbol-upload - shell: bash + shell: pwsh run: npm i -g @bugsplat/symbol-upload - name: Run symbol-upload - shell: bash + shell: pwsh run: >- symbol-upload -b "${{ inputs.database }}"