-
-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update GitHub Actions * fix config file * defer typescript installation * add timeout limitation * force color for mocha * fix typescript version * increase timeout limitation * increase timeout limitation * fix compatibility issue * tweak CI * attempt to fix * tweak * tweak and try * tweak CI * clean up * tweak CI * fix * revert deletion
- Loading branch information
Showing
6 changed files
with
90 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,96 @@ | ||
on: [push, pull_request] | ||
name: CI | ||
|
||
name: build and test | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_and_test: | ||
comparison_test: | ||
name: Comparison Test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install | ||
run: yarn install | ||
|
||
- name: build | ||
run: yarn build | ||
|
||
- name: install typescript | ||
run: yarn add [email protected] | ||
|
||
- name: test | ||
run: sudo yarn comparison-tests | ||
|
||
windows: | ||
name: Windows Test | ||
runs-on: windows-latest | ||
timeout-minutes: 25 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: copy files | ||
shell: pwsh | ||
run: | | ||
New-Item C:\source\ts-loader -ItemType Directory | ||
Copy-Item .\* C:\source\ts-loader -Recurse -Force | ||
- name: install | ||
run: yarn install | ||
working-directory: C:\source\ts-loader | ||
|
||
- name: build | ||
run: yarn build | ||
working-directory: C:\source\ts-loader | ||
|
||
- name: install typescript | ||
run: yarn add [email protected] | ||
working-directory: C:\source\ts-loader | ||
|
||
- name: test | ||
run: yarn comparison-tests | ||
working-directory: C:\source\ts-loader | ||
|
||
execution_test: | ||
name: Execution Test | ||
strategy: | ||
matrix: | ||
os: [ubuntu] | ||
node: [10, 12, 14] | ||
ts: [3.6.5, 3.7.5, 3.8.3, 3.9.3, next] | ||
include: | ||
- os: windows | ||
node: 14 | ||
ts: 3.9.3 | ||
runs-on: ${{ matrix.os }}-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
- name: upgrade yarn | ||
run: npm install yarn -g | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: install | ||
run: yarn install | ||
|
||
- name: build | ||
run: yarn build | ||
|
||
- name: install chrome | ||
uses: ./.github/node-chrome | ||
- name: install typescript | ||
run: yarn add typescript@${{ matrix.ts }} | ||
|
||
- name: test | ||
run: yarn execution-tests | ||
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install | ||
run: yarn install | ||
|
||
- name: lint | ||
run: yarn lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,3 @@ env: | |
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ environment: | |
- TYPESCRIPT: [email protected] | ||
- TYPESCRIPT: [email protected] | ||
- TYPESCRIPT: [email protected] | ||
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version | ||
- yarn install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters