generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 9
57 lines (56 loc) · 1.47 KB
/
test.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
51
52
53
54
55
56
57
name: Unit Test
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- master
- 'releases/*'
jobs:
build: # make sure build/ci work properly
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [
ubuntu-22.04,
ubuntu-20.04,
macos-12,
macos-11.0,
windows-2022,
windows-2019,
]
steps:
- uses: actions/checkout@v4
- run: |
node --version
npm --version
npm install
npm run all
CopyTest: # make sure the action works on a clean machine without building
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [
ubuntu-22.04,
ubuntu-20.04,
macos-12,
macos-11.0,
windows-2022,
windows-2019
]
steps:
- uses: actions/checkout@v4
- run: |
azcopy --version | grep 'azcopy'
which azcopy
- uses: ./
with:
version: 'v10'
creds: ${{ secrets.AZURE_CREDENTIALS }}
env:
ACTIONS_RUNNER_DEBUG: true
- run: |
azcopy --version | grep 'azcopy'
azcopy_v10 --version | grep 'azcopy'
which azcopy_v10
touch ${{ matrix.operating-system }}
azcopy_v10 copy ./${{ matrix.operating-system }} https://installazcopyactiontest.blob.core.windows.net/githubflow/${{ matrix.operating-system }} --overwrite=true