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:
|
2020-08-06 23:14:21 +02:00
|
|
|
node-version: [10.x, 12.x, 14.x]
|
2019-10-23 22:57:49 +02:00
|
|
|
|
|
|
|
steps:
|
2020-07-10 18:10:26 +02:00
|
|
|
- uses: actions/checkout@v2
|
2019-10-23 22:57:49 +02:00
|
|
|
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
|
2020-08-20 01:50:23 +02:00
|
|
|
- run: npm ci
|
2020-07-06 18:24:33 +02:00
|
|
|
|
|
|
|
# Re: https://github.com/actions/setup-node/pull/125
|
|
|
|
- name: Register Problem Matcher for TSC
|
|
|
|
run: echo "##[add-matcher].github/tsc.json"
|
|
|
|
|
|
|
|
- name: Tests
|
|
|
|
run: npm test -- --no-lint
|
|
|
|
|
|
|
|
- name: Linter
|
|
|
|
run: npm run lint:ci
|
|
|
|
|
2020-09-29 21:22:04 +02:00
|
|
|
- name: Adding playwright
|
|
|
|
run: npm install --no-save --no-package-lock playwright
|
|
|
|
|
2020-02-13 20:19:33 +01:00
|
|
|
- name: Validate the browser can import TypeScript
|
|
|
|
run: gulp test-browser-integration
|
2020-08-20 01:50:23 +02:00
|
|
|
|