mirror of
https://github.com/bower/bower.git
synced 2026-01-14 00:38:03 -05:00
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
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 && (cd packages/bower-json && yarn link) && yarn link bower-json
|
|
- name: lint
|
|
run: npm run lint
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- 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
|