name: CI on: push: pull_request: schedule: - cron: '30 12 * * *' jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [macos-latest, ubuntu-latest, windows-latest] node-version: [10.x, 12.x, 14.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - name: Install Dependencies run: npm install --no-package-lock - name: Run All Validations if: ${{ matrix.node-version != '10.x' }} run: npm run ci - name: Run Tests Only if: ${{ matrix.node-version == '10.x' }} run: npm run test