Skip to content

Commit 2dfa297

Browse files
committed
Adds testing the TypeScript repo against PR changes
1 parent bcb3648 commit 2dfa297

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test_typescript.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Runs with TypeScript Tests
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
12+
- run:|
13+
# Get local dependencies
14+
npm install
15+
# Make our new dom APIs
16+
npm build
17+
18+
# Clone TypeScript, set it up
19+
git clone https://github.com/microsoft/TypeScript -–depth 1
20+
cd TypeScript
21+
npm i
22+
23+
# Move in the generated dom APIs into a new version of TSC
24+
cp -rf ../generated/* src/lib
25+
26+
# Run TypeScript's tests with the new DOM libs
27+
npm test

0 commit comments

Comments
 (0)