Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run comparison tests in consistent location on Windows #1277

Merged
merged 4 commits into from Mar 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
65 changes: 47 additions & 18 deletions .github/workflows/push.yml
@@ -1,10 +1,10 @@
name: Continuous Integration (build and test)
name: build and test

on: [push, pull_request]

jobs:
comparison_test:
name: Ubuntu Comparison Tests
comparison_test_ubuntu:
name: Comparison Tests Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
Expand All @@ -16,14 +16,11 @@ jobs:
- name: build
run: yarn build

- name: install typescript
run: yarn add typescript@4.1.2

- name: test
run: sudo yarn comparison-tests

windows:
name: Windows Comparison Tests
comparison_test_windows:
name: Comparison Tests Windows
runs-on: windows-latest
timeout-minutes: 25
steps:
Expand All @@ -43,22 +40,17 @@ jobs:
run: yarn build
working-directory: C:\source\ts-loader

- name: install typescript
run: yarn add typescript@4.1.2
working-directory: C:\source\ts-loader

- name: test
run: yarn comparison-tests
working-directory: C:\source\ts-loader

execution_test:
name: Execution Tests
execution_test_ubuntu:
name: Execution Tests Ubuntu
strategy:
matrix:
os: [ubuntu, windows]
node: [10, 12, 14]
ts: [3.8.3, 3.9.3, 4.0.3, 4.1.2, next]
runs-on: ${{ matrix.os }}-latest
node: [12, 14]
ts: [3.8.3, 3.9.3, 4.0.3, 4.1.5, next]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

Expand All @@ -79,6 +71,43 @@ jobs:
- name: test
run: yarn execution-tests

execution_test_windows:
name: Execution Tests Windows
strategy:
matrix:
node: [12, 14]
ts: [3.8.3, 3.9.3, 4.0.3, 4.1.5, next]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- name: install node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- 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 typescript@${{ matrix.ts }}
working-directory: C:\source\ts-loader

- name: test
run: yarn execution-tests
working-directory: C:\source\ts-loader

lint:
name: Lint
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -2,7 +2,7 @@ on:
release:
types: [published]

name: Release (build, test and publish)
name: release

jobs:
build_test_and_publish:
Expand Down
4 changes: 2 additions & 2 deletions README.md
@@ -1,7 +1,7 @@
# TypeScript loader for webpack

[![npm version](https://img.shields.io/npm/v/ts-loader.svg)](https://www.npmjs.com/package/ts-loader)
![GitHub build)](https://github.com/TypeStrong/ts-loader/workflows/Continuous%20Integration%20(build%20and%20test)/badge.svg)
[![build and test](https://github.com/TypeStrong/ts-loader/actions/workflows/push.yml/badge.svg)](https://github.com/TypeStrong/ts-loader/actions/workflows/push.yml)
[![Downloads](http://img.shields.io/npm/dm/ts-loader.svg)](https://npmjs.org/package/ts-loader)
[![node version](https://img.shields.io/node/v/ts-loader.svg)](https://www.npmjs.com/package/ts-loader)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
Expand Down Expand Up @@ -127,7 +127,7 @@ If you'd like to see a simple setup take a look at [our simple example](examples

### Babel

`ts-loader` works very well in combination with [babel](https://babeljs.io/) and [babel-loader](https://github.com/babel/babel-loader). There is an [example](https://github.com/Microsoft/TypeScriptSamples/tree/master/react-flux-babel-karma) of this in the official [TypeScript Samples](https://github.com/Microsoft/TypeScriptSamples). Alternatively take a look at our own [example](examples/react-babel-karma-gulp).
`ts-loader` works very well in combination with [babel](https://babeljs.io/) and [babel-loader](https://github.com/babel/babel-loader). There is an [example](https://github.com/Microsoft/TypeScriptSamples/tree/master/react-flux-babel-karma) of this in the official [TypeScript Samples](https://github.com/Microsoft/TypeScriptSamples).

### Parallelising Builds

Expand Down
15 changes: 0 additions & 15 deletions examples/react-babel-karma-gulp/README.md

This file was deleted.

29 changes: 0 additions & 29 deletions examples/react-babel-karma-gulp/gulp/clean.js

This file was deleted.

55 changes: 0 additions & 55 deletions examples/react-babel-karma-gulp/gulp/inject.js

This file was deleted.

31 changes: 0 additions & 31 deletions examples/react-babel-karma-gulp/gulp/staticFiles.js

This file was deleted.

45 changes: 0 additions & 45 deletions examples/react-babel-karma-gulp/gulp/tests.js

This file was deleted.

39 changes: 0 additions & 39 deletions examples/react-babel-karma-gulp/gulp/webpack.js

This file was deleted.

44 changes: 0 additions & 44 deletions examples/react-babel-karma-gulp/gulpFile.js

This file was deleted.