diff --git a/.github/workflows/test-ubuntu.yml b/.github/workflows/test-matrix.yml similarity index 80% rename from .github/workflows/test-ubuntu.yml rename to .github/workflows/test-matrix.yml index 548c7b6..79ae5eb 100644 --- a/.github/workflows/test-ubuntu.yml +++ b/.github/workflows/test-matrix.yml @@ -7,7 +7,10 @@ on: jobs: # test action works running from the graph test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - name: Checkout uses: actions/checkout@v1 @@ -23,5 +26,5 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@master with: - name: 'final-file.txt' + name: 'final-file-${{ matrix.os }}.txt' path: ${{ steps.write_file.outputs.filePath }} \ No newline at end of file diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml deleted file mode 100644 index 41fb70d..0000000 --- a/.github/workflows/test-windows.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: "Action Test (Windows)" -on: - push: - branches: - - master - -jobs: - # test action works running from the graph - test: - runs-on: windows-latest - steps: - - name: Checkout - uses: actions/checkout@v1 - - name: Run Workflow - id: write_file - uses: ./ - with: - fileName: 'myTemporaryFile.txt' - encodedString: ${{ secrets.SOME_ENCODED_STRING }} # SGVsbG8sIFdvcmxkIQ== - - name: Echo file - run: | - echo ${{ steps.write_file.outputs.filePath }} - - name: Upload Artifact - uses: actions/upload-artifact@master - with: - name: 'final-file.txt' - path: ${{ steps.write_file.outputs.filePath }} \ No newline at end of file