-
Notifications
You must be signed in to change notification settings - Fork 8
71 lines (56 loc) · 1.65 KB
/
pull-request.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Pull Request
on:
pull_request:
branches:
- main
jobs:
buildAndUnitTest:
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
PROJECT_NAME: 'Blockcore.AtomicSwaps'
SOLUTION_PATH: 'src/Angor.sln'
PROJECT_PATH: 'src/Angor/Server/Angor.Server.csproj'
BUILD_CONFIGURATION: 'Release'
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0.x
- name: Setup Node.js (${{ matrix.node_version }})
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: Variables
run: |
echo VERSION=$(npm run version --silent) >> $GITHUB_ENV
shell: bash
- name: Workload
run: dotnet workload restore ${{env.SOLUTION_PATH}}
- name: Restore
run: dotnet restore ${{env.SOLUTION_PATH}}
- name: Unit Test
run: |
dotnet test --logger "trx;LogFileName=testresults.trx" -v normal -c Release src/Angor.sln | grep -E '(Passed|Failed) .*ms'
# cypress-run:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Print Working Directory
# run: pwd
# - name: Install Dependencies
# run: npm install
# - name: Cypress run
# uses: cypress-io/github-action@v6
# with:
# build: npm run build
# start: npm start
# browser: electron
# headless: true
# config-file: src/Testing/cypress.config.js