Release Candidate for 1.0.0 #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Load cached modules | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Load Node.js latest | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: '17.x' | |
- name: Install all dependencies | |
run: npm install | |
- name: Compile TypeScript and build UMD files | |
run: npm run build | |
lint: | |
name: lint | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js latest | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: '17.x' | |
- name: Get cached modules | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Run ESLint | |
run: npm run lint | |
test-coverage: | |
name: test-coverage | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js latest | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: '17.x' | |
- name: Get cached modules | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Compile TypeScript and build UMD files | |
run: npm run build | |
- name: Build coverage | |
run: npm run test:coverage | |
- name: Run codecov | |
run: node ./node_modules/.bin/codecov |