Skip to content

Commit b5cb71a

Browse files
committed
Add task mirroring devops release branch artifact building pipeline
1 parent c550c7e commit b5cb71a

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- release-*
7+
pull_request:
8+
branches:
9+
- release-*
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use node version 12
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 12
21+
- name: Remove existing TypeScript
22+
run: |
23+
npm uninstall typescript --no-save
24+
npm uninstall tslint --no-save
25+
- name: npm install and test
26+
run: |
27+
npm install
28+
npm update
29+
npm test
30+
env:
31+
CI: true
32+
- name: Validate the browser can import TypeScript
33+
run: gulp test-browser-integration
34+
- name: LKG, clean, and pack
35+
run: |
36+
gulp LKG
37+
gulp clean
38+
npm pack ./
39+
mv typescript-*.tgz typescript.tgz
40+
env:
41+
CI: true
42+
- name: Upload built tarfile
43+
uses: actions/upload-artifact@v1
44+
with:
45+
name: tgz
46+
path: typescript.tgz
47+

0 commit comments

Comments
 (0)