Run tests on windows and macos
MODIFY
.github/workflows/ci.yml
.github/workflows/ci.yml
@@ -16,34 +16,48 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
- node-version: "13.x"
+ node-version: '13.x'
- name: Run TypeScript
run: node ./node_modules/.bin/tsc --noEmit
- ci:
- name: Lint & Tests
+ lint:
+ name: Lint
runs-on: ubuntu-latest
+ needs: [typescript]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
- node-version: "13.x"
- - name: Run Rome CI
- run: ./scripts/dev-rome ci
+ node-version: '13.x'
+ - name: Run Rome test
+ run: node scripts/dev-rome test --freeze-snapshots
+
+ tests:
+ name: Tests
+ runs-on: [ubuntu-latest, windows-latest, macos-latest]
+ needs: [lint]
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '13.x'
+ - name: Run Rome lint
+ run: node scripts/dev-rome lint
build:
name: Build
runs-on: ubuntu-latest
- needs: [typescript, ci]
+ needs: [tests]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
- node-version: "13.x"
+ node-version: '13.x'
- name: Build release
- run: ./scripts/build-release dist
+ run: node scripts/build-release dist
- name: Create tarball
run: tar -C dist -czvf dist.tar.gz .

Run tests on windows and macos