Skip to content

Commit

Permalink
run comparison tests in consistent location on Windows (TypeStrong#1277)
Browse files Browse the repository at this point in the history
* run comparison tests in consistent location

* update status badge

* delete old examples

* Update README.md
  • Loading branch information
johnnyreilly authored Mar 28, 2021
1 parent a1b19a1 commit 0d6c803
Show file tree
Hide file tree
Showing 59 changed files with 50 additions and 18,195 deletions.
65 changes: 47 additions & 18 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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.

Loading

0 comments on commit 0d6c803

Please sign in to comment.