Changing test workflow to matrix

This commit is contained in:
Tim Heuer
2020-10-01 10:43:27 -07:00
parent 5313db3e7c
commit 2da77ba1a8
2 changed files with 5 additions and 29 deletions

30
.github/workflows/test-matrix.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: "Action Test (Ubuntu)"
on:
push:
branches:
- master
jobs:
# test action works running from the graph
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, 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-${{ matrix.os }}.txt'
path: ${{ steps.write_file.outputs.filePath }}