name: build on: push: branches: - master pull_request: branches: - '**' jobs: test: name: Node v${{ matrix.node-version }} on ${{ matrix.os }} strategy: fail-fast: false matrix: # https://github.com/actions/setup-node/issues/27 node-version: [0.10.x, 0.12.x, 4.x, 6.x, 8.x, 10.x, 12.x, 14.x] os: [ubuntu-latest, macOS-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Set git config shell: bash run: | git config --global core.autocrlf false git config --global core.symlinks true if: runner.os == 'Windows' - uses: actions/checkout@v2 - name: install run: yarn - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - name: lint run: npm run lint - name: bower tests run: npm test env: CI: true - name: bower-logger tests run: (cd packages/bower-logger && npm install && npm test) env: CI: true - name: bower-config tests run: (cd packages/bower-config && npm install && npm test) env: CI: true - name: bower-endpoint-parser tests run: (cd packages/bower-endpoint-parser && npm install && npm test) env: CI: true - name: bower-json tests run: (cd packages/bower-json && npm install && npm test) env: CI: true - name: bower-registry-client tests run: (cd packages/bower-registry-client && npm install && npm test) env: CI: true