From ddf9dac666f8309ced7f8e96ace1924a0503f432 Mon Sep 17 00:00:00 2001 From: Tim Heuer Date: Tue, 21 Jan 2020 08:37:13 -0800 Subject: [PATCH] Adding windows-latest to a new workflow for test --- .../workflows/{test.yml => test-ubuntu.yml} | 2 +- .github/workflows/test-windows.yml | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) rename .github/workflows/{test.yml => test-ubuntu.yml} (95%) create mode 100644 .github/workflows/test-windows.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test-ubuntu.yml similarity index 95% rename from .github/workflows/test.yml rename to .github/workflows/test-ubuntu.yml index 5d515f1..548c7b6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test-ubuntu.yml @@ -1,4 +1,4 @@ -name: "Action Test" +name: "Action Test (Ubuntu)" on: push: branches: diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml new file mode 100644 index 0000000..41fb70d --- /dev/null +++ b/.github/workflows/test-windows.yml @@ -0,0 +1,27 @@ +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