forked from microsoft/TypeScript-DOM-lib-generator
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (31 loc) · 1007 Bytes
/
test_typescript.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
name: Runs with TypeScript Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '15'
- name: Run TypeScript Compiler Tests with new dom.d.ts
run: |
# Get local dependencies
npm install
# Make our new dom APIs
npm run build
# Clone TypeScript, set it up
git clone https://github.com/microsoft/TypeScript --depth 1
# Migrate the generated files into the repo
npm run migrate
cd TypeScript
npm i
# Run TypeScript's tests with the new DOM libs, but don't fail
npm test || true
gulp baseline-accept
# The git diff now is the difference between tests
git diff > baseline-changes.diff
- name: Danger
run: npx danger -- ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}