Skip to content

Add shield.io README badges and sponsorship #854

Add shield.io README badges and sponsorship

Add shield.io README badges and sponsorship #854

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: "Tests on ${{matrix.platform}}"
strategy:
fail-fast: false
matrix:
platform:
- ubuntu-latest
- windows-latest
runs-on: ${{matrix.platform}}
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Set Node.js 16.x
uses: actions/setup-node@main
with:
node-version: 16.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn
- name: Run Tests
run: yarn cross-env CI=true yarn jest --coverage --color
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) -C $GITHUB_SHA -B ${GITHUB_REF#refs/heads/} -Z
if: ${{ matrix.platform == 'ubuntu-latest' && always() }}
env:
CODECOV_TOKEN: dc4ed93e-11a9-421e-b141-8a2f11913593
typescript:
name: TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set Node.js 16.x
uses: actions/setup-node@main
with:
node-version: 16.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn
- name: Check Types
run: yarn tsc
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set Node.js 16.x
uses: actions/setup-node@main
with:
node-version: 16.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn
- name: Run ESLint
run: yarn lint