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

build(window): try to run the tests workflow on a windows machine #1234

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ on:

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [lts/gallium, lts/fermium]

os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -25,8 +24,6 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: install ts auto mock and run test
run: |
sudo apt-get update
sudo apt-get install -y libgbm-dev
npm ci
npm run build
npm test
Expand All @@ -41,8 +38,6 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: check eslint and prettier
run: |
sudo apt-get update
sudo apt-get install -y libgbm-dev
npm ci
npm run eslint
npm run prettier
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"test:logs": "cross-env JASMINE_CONFIG=./test/logs/jasmine.json TSCONFIG=./test/logs/tsconfig.json npm run test:common",
"test:playground": "cross-env JASMINE_CONFIG=./test/playground/jasmine.json TSCONFIG=./test/playground/tsconfig.json npm run test:common",
"test:playground:build": "cross-env JASMINE_CONFIG=./test/playground/jasmine.build.json TSCONFIG=./test/playground/tsconfig.json npm run test:common",
"test:common": "cross-var ts-node --files -r tsconfig-paths/register --compiler ttypescript --project $TSCONFIG node_modules/jasmine/bin/jasmine --config=$JASMINE_CONFIG",
"test:common": "ts-node --files -r tsconfig-paths/register --compiler ttypescript --project $TSCONFIG node_modules/jasmine/bin/jasmine --config=$JASMINE_CONFIG",
"dist:collect": "cp -r package.json package-lock.json README.md LICENSE.md dist",
"ts-check:src": "tsc --noEmit",
"eslint": "eslint ./src/**/*.ts ./test/**/*.ts",
Expand Down