name: Tests on: [push, pull_request] jobs: test: runs-on: ubuntu-latest strategy: matrix: node-version: [12.x, 14.x, 16.x] steps: - name: Checkout repository uses: actions/checkout@v2 with: fetch-depth: 2 - name: Set up Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install Codecov run: npm install -g codecov - name: Install dependencies run: npm ci - name: Bootstrap packages run: npm run bootstrap - name: Run the lint run: npm run lint - name: Run the coverage run: npm run cover - name: Run the coverage run: codecov