Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add CI tasks to GitHub Workflows

+53
+53
.github/workflows/ci.yml
··· 1 + name: CI 2 + 3 + on: 4 + pull_request: 5 + push: 6 + branches: main 7 + 8 + jobs: 9 + check: 10 + name: Checks 11 + runs-on: ubuntu-latest 12 + timeout-minutes: 10 13 + steps: 14 + - name: Checkout Repo 15 + uses: actions/checkout@v2 16 + with: 17 + fetch-depth: 0 18 + - name: Setup Node 19 + uses: actions/setup-node@v1 20 + with: 21 + node-version: '14' 22 + - name: Get Yarn cache directory 23 + id: yarn-cache-dir-path 24 + run: echo "::set-output name=dir::$(yarn cache dir)" 25 + - name: Use Yarn cache 26 + uses: actions/cache@v2 27 + id: yarn-cache 28 + with: 29 + path: | 30 + ~/.cache/Cypress 31 + ${{ steps.yarn-cache-dir-path.outputs.dir }} 32 + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} 33 + restore-keys: | 34 + ${{ runner.os }}-yarn- 35 + - name: Use node_modules cache 36 + id: node-modules-cache 37 + uses: actions/cache@v2 38 + with: 39 + path: node_modules 40 + key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }} 41 + - name: Install Dependencies 42 + if: | 43 + steps.yarn-cache.outputs.cache-hit != 'true' || 44 + steps.node-modules-cache.outputs.cache-hit != 'true' 45 + run: yarn install --prefer-offline --frozen-lockfile --non-interactive --silent 46 + - name: TypeScript 47 + run: yarn run check 48 + - name: Linting 49 + run: yarn run lint 50 + - name: Unit Tests 51 + run: yarn run test --maxWorkers=2 52 + - name: Build 53 + run: yarn run build