Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #882 from nugit/develop
Browse files Browse the repository at this point in the history
29 September 2021 Release
  • Loading branch information
limtingzhi committed Sep 29, 2021
2 parents f5fa8d4 + 0ecbba9 commit 47bd22f
Show file tree
Hide file tree
Showing 38 changed files with 5,615 additions and 7,707 deletions.
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

13 changes: 3 additions & 10 deletions .flowconfig
@@ -1,9 +1,7 @@
[ignore]
; ignore is using regex syntax
<PROJECT_ROOT>/\.circleci/.*
<PROJECT_ROOT>/\.github/.*
<PROJECT_ROOT>/\.idea/.*
<PROJECT_ROOT>/coverage/.*
<PROJECT_ROOT>/lib/.*
<PROJECT_ROOT>/\..*/.*
<PROJECT_ROOT>/node_modules/.*
Expand All @@ -21,11 +19,7 @@ all=error
deprecated-utility=error
implicit-inexact-object=error
ambiguous-object-type=error
sketchy-null=warn
deprecated-type=warn
unclear-type=warn
untyped-import=warn
unsafe-getters-setters=warn
nonstrict-import=off

[declarations]
; declarations is using regex syntax
Expand All @@ -41,10 +35,9 @@ module.file_ext=.json
exact_by_default=true
experimental.const_params=true
munge_underscores=true
esproposal.optional_chaining=enable
; include_warnings=true
well_formed_exports=true
types_first=true
; Fixes out of shared memory error for Mac Rosetta 2, see https://github.com/facebook/flow/issues/8538
sharedmemory.heap_size=3221225472

[strict]
nonstrict-import
Expand Down
17 changes: 16 additions & 1 deletion .github/dependabot.yml
@@ -1,5 +1,7 @@
version: 2

updates:
# root
- package-ecosystem: "npm"
directory: "/"
schedule:
Expand All @@ -8,7 +10,20 @@ updates:
allow:
- dependency-type: "direct"
reviewers:
- "@nugit/front-devs"
- team-engineering-x
target-branch: "develop"
commit-message:
prefix: "fix:"
prefix-development: "chore:"

# github actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "22:00"
reviewers:
- team-engineering-x
target-branch: "develop"
commit-message:
prefix: "chore:"
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
@@ -0,0 +1,6 @@
**Changes:**


**PRs:**

-
16 changes: 16 additions & 0 deletions .github/workflows/changelog.yml
@@ -0,0 +1,16 @@
name: Changelog

on:
pull_request:
types: [opened, edited, synchronize]
branches: [master]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: nugit/actions-pr-changelog@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
type: release
39 changes: 39 additions & 0 deletions .github/workflows/dependabot-merge.yml
@@ -0,0 +1,39 @@
name: dependabot-merge

on:
workflow_run:
workflows: ["dependabot-check"]
types:
- completed

# See https://github.com/dependabot/dependabot-core/issues/3253#issuecomment-852541544
jobs:
check:
# Copied from push.yml
runs-on: ubuntu-latest
if: ${{ (github.event.workflow_run.conclusion == 'success') && (github.event.sender.login == 'dependabot[bot]') }}
steps:
- uses: haya14busa/action-workflow_run-status@v1
- uses: actions/checkout@v2.3.4
with:
ref: ${{ github.event.workflow_run.head_branch }}
- uses: actions/setup-node@v2.4.0
with:
node-version: 12
cache: 'yarn'
- run: yarn install
- run: yarn lint
- run: yarn flow
- run: yarn test
- run: yarn build
auto-merge:
runs-on: ubuntu-latest
needs: check
steps:
- uses: haya14busa/action-workflow_run-status@v1
- uses: fastify/github-action-merge-dependabot@v2.5.0
with:
target: minor
merge-method: merge
github-token: ${{ secrets.GITHUB_TOKEN }}
pr-number: ${{ github.event.workflow_run.pull_requests[0].number }}
12 changes: 12 additions & 0 deletions .github/workflows/dependabot.yml
@@ -0,0 +1,12 @@
name: dependabot-check

on:
pull_request:

# See https://github.com/dependabot/dependabot-core/issues/3253#issuecomment-852541544
jobs:
check-dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- run: echo "PR created by Dependabot"
35 changes: 35 additions & 0 deletions .github/workflows/deploy-production.yml
@@ -0,0 +1,35 @@
name: Deploy Production

on:
push:
branches:
- master

jobs:
back-merge:
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Merge master -> develop
uses: devmasx/merge-branch@1.4.0
with:
type: now
from_branch: master
target_branch: develop
github_token: ${{ secrets.GH_TOKEN }}
deploy: # Runs install once before everything to create & save cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.4.0
with:
node-version: 12
cache: 'yarn'
- run: yarn install
- name: publish
run: yarn deploy
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
24 changes: 24 additions & 0 deletions .github/workflows/deploy-staging.yml
@@ -0,0 +1,24 @@
name: Deploy Staging

on:
push:
branches:
- alpha
- develop

jobs:
install: # Runs install once before everything to create & save cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.4.0
with:
node-version: 12
cache: 'yarn'
- run: yarn install
- name: publish
run: yarn deploy
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
47 changes: 0 additions & 47 deletions .github/workflows/deploy.yml

This file was deleted.

85 changes: 9 additions & 76 deletions .github/workflows/push.yml
@@ -1,91 +1,24 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Lint
name: Check

on: [push]
on:
push:
branches-ignore:
- dependabot/**

jobs:
setup:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.4.0
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- run: yarn install
lint:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
cache: 'yarn'
- run: yarn install
- run: yarn lint
flow:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- run: yarn install
- run: yarn flow
test:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- run: yarn install
- run: yarn test
build:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- run: yarn install
- run: yarn build
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -18,9 +18,9 @@ logs
results
temp


# Editors
*.sublime-workspace

# Vim swap and backup files
*.swo
*.swp
Expand All @@ -30,6 +30,7 @@ temp
npm-debug.log
node_modules
yarn-error.log
.npmrc

# ESLint
.eslintcache
Expand Down
9 changes: 9 additions & 0 deletions .husky/commit-msg
@@ -0,0 +1,9 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

if [[ -n $HUSKY_BYPASS ]]; then
echo "Husky bypassed"
exit 0;
fi

yarn commitlint --config ./config/commitlint.config.js --edit $1

0 comments on commit 47bd22f

Please sign in to comment.