name: Test on: push: branches: - develop - master pull_request: types: - opened - synchronize jobs: Windows: name: Test Windows runs-on: windows-latest steps: - name: Checkout branch uses: actions/checkout@v1 - name: Read Node version from .nvmrc run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" id: nvm - uses: actions/setup-node@v1 with: node-version: ${{ steps.nvm.outputs.NVMRC }} - name: Bootstrap packages run: npm run bootstrap - name: Run tests run: npm test Linux: name: Test Linux runs-on: ubuntu-latest steps: - name: Checkout branch uses: actions/checkout@v1 - name: Read Node version from .nvmrc run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" id: nvm - uses: actions/setup-node@v1 with: node-version: ${{ steps.nvm.outputs.NVMRC }} - name: Bootstrap packages run: npm run bootstrap - name: Run tests run: npm test