forked from avwsolutions/setup-dapr
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 864 Bytes
/
test.yml
File metadata and controls
36 lines (34 loc) · 864 Bytes
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
name: "units-test"
on:
# Triggers the workflow on push
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# unit tests
units:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- run: npm ci
- run: npm test
# test action works running from the graph
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
# Test that the default version is used
- name: Install default version
uses: ./
if: ${{ matrix.os == 'windows-latest'}}
# Test that explicit version is used
- name: Install specific version
uses: ./
if: ${{ matrix.os != 'windows-latest'}}
with:
version: 1.0.0
- name: Run Dapr
run: dapr --version