-
Notifications
You must be signed in to change notification settings - Fork 12
74 lines (68 loc) · 2.83 KB
/
main.yml
File metadata and controls
74 lines (68 loc) · 2.83 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
66
67
68
69
70
71
72
73
74
name: main
on:
pull_request:
branches: '**'
push:
branches: '**'
jobs:
# for branches, we only need to check Linux + Node LTS
# note that we do linting here, but not on Windows / MacOS (no need to)
linux-and-lts:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: bahmutov/npm-install@v1
- run: yarn playwright install-deps chromium
- run: yarn build
- run: yarn build:es
- run: yarn build:all
- run: yarn lint
- run: xvfb-run yarn test --coverage --testTimeout 20000
env: { CI: 1 }
if: matrix.os == 'ubuntu-latest'
- run: yarn test --coverage --testTimeout 20000
env: { CI: 1 }
if: matrix.os != 'ubuntu-latest'
# sanity check that plugins made a file without needing to loadConfig
- run: yarn --cwd ./examples/rollup-project start
- run: yarn --cwd ./examples/esbuild-project start
- uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: |
./app-config-cli/coverage/coverage-final.json,
./app-config-config/coverage/coverage-final.json,
./app-config-core/coverage/coverage-final.json,
./app-config-cypress/coverage/coverage-final.json,
./app-config-default-extensions/coverage/coverage-final.json,
./app-config-encryption/coverage/coverage-final.json,
./app-config-exec/coverage/coverage-final.json,
./app-config-extension-utils/coverage/coverage-final.json,
./app-config-extensions/coverage/coverage-final.json,
./app-config-generate/coverage/coverage-final.json,
./app-config-git/coverage/coverage-final.json,
./app-config-inject/coverage/coverage-final.json,
./app-config-js/coverage/coverage-final.json,
./app-config-logging/coverage/coverage-final.json,
./app-config-main/coverage/coverage-final.json,
./app-config-meta/coverage/coverage-final.json,
./app-config-node/coverage/coverage-final.json,
./app-config-schema/coverage/coverage-final.json,
./app-config-settings/coverage/coverage-final.json,
./app-config-utils/coverage/coverage-final.json,
./app-config-v1-compat/coverage/coverage-final.json,
./app-config-vault/coverage/coverage-final.json,
./app-config-webpack/coverage/coverage-final.json,
./app-config-rollup/coverage/coverage-final.json,
./app-config-vite/coverage/coverage-final.json,
./app-config-electron/coverage/coverage-final.json,
fail_ci_if_error: true
verbose: true