Skip to content

Commit

Permalink
Merge 0ac1c54 into 0cb671f
Browse files Browse the repository at this point in the history
  • Loading branch information
santino committed Jan 23, 2022
2 parents 0cb671f + 0ac1c54 commit 583fff0
Show file tree
Hide file tree
Showing 4 changed files with 8,562 additions and 34,575 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
setup:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 17.x]

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache Yarn
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{matrix.node-version}}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{matrix.node-version}}-
${{ runner.os }}-yarn-
${{ runner.os }}-
- name: Install Dependencies using Yarn
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Install Dependencies using Yarn
run: yarn install

test-plus-coverage:
needs: setup
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 17.x]

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache Yarn
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{matrix.node-version}}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{matrix.node-version}}-
${{ runner.os }}-yarn-
${{ runner.os }}-
- name: Install Dependencies using Yarn
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Run tests plus coverage
run: yarn coverage
- name: Track coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: yarn coveralls

build-plus-sizecheck:
needs: setup
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 17.x]

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache Yarn
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{matrix.node-version}}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{matrix.node-version}}-
${{ runner.os }}-yarn-
${{ runner.os }}-
- name: Install Dependencies using Yarn
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Build package
run: yarn build
- name: Check bundle-size
run: yarn bundlesize
Loading

0 comments on commit 583fff0

Please sign in to comment.