-
Notifications
You must be signed in to change notification settings - Fork 6
92 lines (88 loc) · 2.79 KB
/
code_checks.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Code checks
on:
pull_request
jobs:
# test:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# node-version: [18]
# package: [
# testit-adapter-codecept,
# testit-adapter-cucumber,
# testit-adapter-jest,
# testit-adapter-mocha,
# testit-adapter-playwright,
# ]
# steps:
# - name: Get repository code [${{ matrix.package }}]
# uses: actions/checkout@v3
# - name: Cache deps
# uses: actions/cache@v3
# with:
# path: ~/.npm
# key: node-modules-${{ hashFiles('**/package-lock.json') }}
# - name: Prebuild application ${{ matrix.package }}
# working-directory: ${{ matrix.package }}
# run: npm run prebuild
# - name: Test application
# run: npm run test
# working-directory: ${{ matrix.package }}
# lint:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# node-version: [18]
# package: [
# testit-adapter-codecept,
# testit-adapter-cucumber,
# testit-adapter-jest,
# testit-adapter-mocha,
# testit-adapter-playwright,
# ]
# steps:
# - name: Get repository code [${{ matrix.package }}]
# uses: actions/checkout@v3
# - name: Cache deps
# uses: actions/cache@v3
# with:
# path: ~/.npm
# key: node-modules-${{ hashFiles('**/package-lock.json') }}
# - name: Prebuild application ${{ matrix.package }}
# working-directory: ${{ matrix.package }}
# run: npm run prebuild
# - name: Lint application ${{ matrix.package }}
# working-directory: ${{ matrix.package }}
# run: npm run lint
build:
# needs: [lint, test]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [21]
package: [
testit-adapter-codecept,
testit-adapter-cucumber,
testit-adapter-jest,
testit-adapter-mocha,
testit-adapter-playwright,
testcafe-reporter-testit
]
steps:
- name: Get repository code [${{ matrix.package }}]
uses: actions/checkout@v3
- name: Install Node JS
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache deps
uses: actions/cache@v3
with:
path: ~/.npm
key: node-modules-${{ hashFiles('**/package-lock.json') }}
- name: Build application ${{ matrix.package }}
working-directory: ${{ matrix.package }}
run: npm run build