Skip to content

Commit

Permalink
Merge pull request #124 from alexreardon/refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon authored Oct 20, 2021
2 parents 6d5ad9f + e5a4d8b commit deec8be
Show file tree
Hide file tree
Showing 18 changed files with 2,892 additions and 2,614 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ module.exports = {
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-function': 'off',
},
};
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Always increase the version requirement to match the new version.
versioning-strategy: increase
# Check the npm registry for updates at the start of every week
schedule:
interval: "weekly"
day: "monday"
time: "08:00"
timezone: "Australia/Sydney"
22 changes: 22 additions & 0 deletions .github/workflows/bundle-size-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check bundle size

# This workflow only supported on pull requests
on: pull_request

jobs:
# This workflow contains a single job called "size"
size-limit:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16'

# The size limit github action
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Unit tests

on:
push:
branches: [master]
pull_request:
branches: ['**/**']

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
jest:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16'

- name: Restore dependency cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn install

# Run tests
- name: Tests
run: yarn test
34 changes: 34 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Typescript, eslint, prettier checks

on:
push:
branches: [master]
pull_request:
branches: ['**/**']

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
validate:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16'

- name: Restore dependency cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn install

# Validates project
- name: Typescript, eslint, prettier checks
run: yarn validate
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.16.1
16.11.1
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit deec8be

Please sign in to comment.