Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on: [push, pull_request]
4
5 jobs:
6 prepare-yarn-cache:
7 name: Prepare Cache
8 runs-on: ubuntu-latest
9 steps:
10 - name: Checkout code
11 uses: actions/checkout@v3
12 - name: Use Node.js latest
13 uses: actions/setup-node@v3
14 with:
15 cache: 'yarn'
16 - name: Update Yarn cache
17 env:
18 YARN_ENABLE_SCRIPTS: false # disable post-install scripts
19 YARN_NODE_LINKER: pnp # use pnp linker for better performance: it's meant to update yarn cache only
20 run: |
21 yarn dedupe --check
22 yarn install --immutable
23
24 lint:
25 name: Lint
26 needs: prepare-yarn-cache
27 runs-on: ubuntu-latest
28 steps:
29 - name: Checkout code
30 uses: actions/checkout@v3
31 - name: Use Node.js latest
32 uses: actions/setup-node@v3
33 with:
34 cache: 'yarn'
35 - name: Install
36 run: yarn install
37 - name: Lint
38 run: yarn lint
39 - name: TSCheck
40 run: yarn tscheck
41 - name: Check compat-data
42 run: yarn build-es-shims-data
43 env:
44 CHECK_COMPAT_DATA: true
45
46 test:
47 name: Test on Node.js
48 needs: prepare-yarn-cache
49 runs-on: ubuntu-latest
50 strategy:
51 matrix:
52 node-version: [18, 16, 14, 12]
53 steps:
54 - name: Checkout code
55 uses: actions/checkout@v3
56 - name: Use Node.js latest
57 uses: actions/setup-node@v3
58 with:
59 node-version: ${{ matrix.node-version }}
60 cache: 'yarn'
61 - name: Install
62 run: yarn install
63 - name: Build
64 run: yarn build
65 - name: Test on Node.js ${{ matrix.node-version }}
66 run: yarn jest --ci --color
67 env:
68 BABEL_TYPES_8_BREAKING: true
69 - name: Test the esm build
70 run:
71 yarn test:esm
72
73 test-windows:
74 name: Test on Windows
75 needs: prepare-yarn-cache
76 runs-on: windows-latest
77 steps:
78 - name: Checkout code
79 uses: actions/checkout@v3
80 - name: Use Node.js latest
81 uses: actions/setup-node@v3
82 with:
83 node-version: latest
84 cache: 'yarn'
85 - name: Install
86 run: yarn install
87 - name: Build with bash
88 shell: bash
89 run: yarn build-es-shims-data
90 - name: Build
91 run: yarn build-corejs3-shipped-proposals && gulp build && gulp bundle
92 - name: Test on Node.js latest
93 run: yarn jest --ci --color
94 env:
95 BABEL_TYPES_8_BREAKING: true
96 - name: Test the esm build
97 run:
98 yarn test:esm