Skip to content

Commit

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

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

jobs:
setup:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [stable, lts/*]

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-and-coverage:
needs: setup
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [stable, lts/*]

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache Yarn
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-node-${{matrix.node-version}}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-node-${{matrix.node-version}}-
${{ runner.os }}-yarn-node-
${{ 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
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-node-${{matrix.node-version}}
parallel: true

coveralls-finished:
needs: test-and-coverage
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

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

strategy:
matrix:
node-version: [stable, lts/*]

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache Yarn
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-node-${{matrix.node-version}}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-node-${{matrix.node-version}}-
${{ runner.os }}-yarn-node-
${{ 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
env:
BUNDLESIZE_GITHUB_TOKEN: ${{ secrets.BUNDLESIZE_GITHUB_TOKEN }}
run: yarn bundlesize
Loading

0 comments on commit 33aeb61

Please sign in to comment.