-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcontinuous-integration-workflow.yml
More file actions
65 lines (54 loc) · 2.1 KB
/
continuous-integration-workflow.yml
File metadata and controls
65 lines (54 loc) · 2.1 KB
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
name: Continuous integration
on: push
jobs:
build:
name: Build and test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, ubuntu-16.04]
include:
- os: windows-2019
script_name: .\build.cmd
- os: ubuntu-16.04
script_name: ./build.sh
steps:
- name: checkout
uses: actions/checkout@v1
- name: Download and install node.js
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Install .NET 3.x SDK for build
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.103'
- name: Output important software versions (node)
run: node --version
- name: Output important software versions (yarn)
run: yarn --version
- name: Output important software versions (dotnet)
run: dotnet --version
- name: Build - restore nuget packages
run: ${{ matrix.script_name }} --target=restore-nuget-packages --verbosity=verbose
- name: Build - restore node packages
run: ${{ matrix.script_name }} --target=restore-node-packages --verbosity=verbose
- name: Build - test
env:
MOZ_HEADLESS: 1
CIRCLECI: 1
run: ${{ matrix.script_name }} --target=test --verbosity=verbose
- name: Upload test logs (trx)
uses: actions/upload-artifact@v1
if: always()
continue-on-error: true
with:
name: test results (trx)
path: build/testresults
- name: Upload test supplemental files
uses: actions/upload-artifact@v1
if: always()
continue-on-error: true
with:
name: test screenshots
path: build/testresults/artifacts/**/*.*