name: Validate Monorepo on: pull_request jobs: compliance: name: License Compliance runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 id: cache with: path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install if: steps.cache.outputs.cache-hit != 'true' - run: yarn run compliance:licenses lint: name: Lint runs-on: ubuntu-latest timeout-minutes: 5 steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 id: cache with: path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install if: steps.cache.outputs.cache-hit != 'true' - run: yarn lint test: name: Test runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 id: cache with: path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install if: steps.cache.outputs.cache-hit != 'true' - run: yarn test