mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Add build via esbuild
This configures the existing build tasks to use esbuild by default. If using the plain files is desired, passing `--bundle=false` will build using plain files and still produce a runnable system. This is only a basic build; a more efficient build is provided later when gulp is replaced by hereby.
This commit is contained in:
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
@@ -21,6 +21,13 @@ jobs:
|
||||
- "*"
|
||||
- lts/*
|
||||
- lts/-1
|
||||
bundle:
|
||||
- "true"
|
||||
include:
|
||||
- node-version: "*"
|
||||
bundle: "false"
|
||||
|
||||
name: Test Node ${{ matrix.node-version }} with --bundle=${{ matrix.bundle }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -32,7 +39,7 @@ jobs:
|
||||
- run: npm ci
|
||||
|
||||
- name: Tests
|
||||
run: npm test
|
||||
run: npm run test -- --bundle=${{ matrix.bundle }}
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -68,6 +75,21 @@ jobs:
|
||||
- name: Validate the browser can import TypeScript
|
||||
run: gulp test-browser-integration
|
||||
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "*"
|
||||
check-latest: true
|
||||
- run: npm ci
|
||||
|
||||
- name: Build src
|
||||
run: npx hereby build-src
|
||||
|
||||
|
||||
misc:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -84,3 +106,23 @@ jobs:
|
||||
|
||||
- name: ESLint tests
|
||||
run: gulp run-eslint-rules-tests
|
||||
|
||||
self-check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "*"
|
||||
check-latest: true
|
||||
- run: npm ci
|
||||
|
||||
- name: Build tsc
|
||||
run: gulp tsc
|
||||
|
||||
- name: Clean
|
||||
run: gulp clean-src
|
||||
|
||||
- name: Self build
|
||||
run: gulp build-src --built
|
||||
|
||||
Reference in New Issue
Block a user