-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 978 Bytes
/
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
name: Test
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x
- uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}/nuget-5.0.x/${{ hashFiles('**/packages.lock.json') }}
restore-keys: ${{ runner.os }}/nuget-5.0.x/
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}/node-16/${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}/node-16/
- name: Install Dependencies
run: dotnet restore && npm install
env:
PERCY_POSTINSTALL_BROWSER: true
- name: Build Package
run: dotnet build --configuration Release --no-restore
- name: Run Tests
run: npm test -- --no-restore