generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 25
50 lines (43 loc) · 1.16 KB
/
test-matrix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Action Test"
on:
push:
branches:
- main
workflow_dispatch:
branches:
- main
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@v3
- name: Write file (1)
id: write_file
uses: ./
with:
fileName: 'temp/dir/not/exists/myTemporaryFile.txt'
encodedString: ${{ secrets.SOME_ENCODED_STRING }} # SGVsbG8sIFdvcmxkIQ==
- name: Write file (2)
id: write_file2
uses: ./
with:
fileName: 'myTemporaryFile.json'
encodedString: ${{ secrets.ENCODED_JSON }}
- name: Echo file
run: |
echo ${{ steps.write_file.outputs.filePath }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: 'final-file-${{ matrix.os }}.txt'
path: ${{ steps.write_file.outputs.filePath }}
- name: Upload Artifact 2
uses: actions/upload-artifact@v3
with:
name: 'final-file-${{ matrix.os }}.json'
path: ${{ steps.write_file2.outputs.filePath }}