2019-10-23 22:57:49 +02:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release-*
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release-*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [8.x, 10.x, 12.x]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
fetch-depth: 5
|
|
|
|
- name: Use node version ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Remove existing TypeScript
|
|
|
|
run: |
|
|
|
|
npm uninstall typescript --no-save
|
|
|
|
npm uninstall tslint --no-save
|
|
|
|
- name: npm install and test
|
|
|
|
run: |
|
|
|
|
npm install
|
|
|
|
npm update
|
|
|
|
npm test
|
2020-02-13 20:19:33 +01:00
|
|
|
- name: Validate the browser can import TypeScript
|
|
|
|
run: gulp test-browser-integration
|
|
|
|
|