Skip to content

Commit

Permalink
Merge pull request #89 from twitter-base/next
Browse files Browse the repository at this point in the history
chore(merge): Merge pull request #87 from twitter-base/dev
  • Loading branch information
dezren39 authored Sep 18, 2020
2 parents 9746c2a + 2fec2e2 commit 14b2368
Show file tree
Hide file tree
Showing 10 changed files with 1,971 additions and 1,209 deletions.
21 changes: 21 additions & 0 deletions .eslinte.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
env:
browser: true
node: true
es2020: true
extends: 'eslint:recommended'
parserOptions:
ecmaVersion: 11
sourceType: module
rules:
indent:
- error
- 2
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
21 changes: 21 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
env:
browser: true
node: true
es2020: true
extends: 'eslint:recommended'
parserOptions:
ecmaVersion: 11
sourceType: module
rules:
indent:
- error
- 4
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
139 changes: 119 additions & 20 deletions .github/workflows/install-build-test.node.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: Install, Build, Test [@nodejs]
on: [push, pull_request, pull_request_target, create, fork, release]
name: Check Base-Branch [pr]
on: [ pull_request, pull_request_target, pull_request_review_comment, pull_request_review ]
jobs:
install-build-test_node:
name: Install, Build, Test - ${{ matrix.pm }}(${{ matrix.node }})
check_base-branch_dev:
name: Check-fix invalid head=>base pairs (dev)
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '12', '10' ]
pm: [ 'yarn', 'npm' ]
steps:
- name: Dump GitHub context
env:
Expand All @@ -33,16 +29,119 @@ jobs:
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2-beta
- if: github.ref == 'refs/heads/dev' || github.head_ref == 'dev' || github.head.ref == 'dev'
name: Check base-branch(dev) - main=>next (FORCE)
uses: dezren39/check-base-branch-action@v2
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Install dependencies
run: ${{ matrix.pm }} install #--immutable --immutable-cache --check-cache
- name: Build target
run: ${{ matrix.pm }} build
- name: Test code
run: ${{ matrix.pm }} test
protected-branches: "main"
default-branch: "next"
update-branch: true
repo-token: "${{ secrets.GITHUB_TOKEN }}"
check_base-branch_next:
name: Check-fix invalid head=>base pairs (next)
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- if: github.ref == 'refs/heads/next' || github.head_ref == 'next' || github.head.ref == 'next'
name: Check base-branch(next) - dev=>main
uses: dezren39/check-base-branch-action@v2
with:
protected-branches: "dev"
default-branch: "main"
update-branch: false
repo-token: "${{ secrets.GITHUB_TOKEN }}"
check_base-branch_main:
name: Check-fix invalid head=>base pairs (main)
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- if: github.ref == 'refs/heads/main' || github.head_ref == 'main' || github.head.ref == 'main'
name: Check base-branch(main) - next=>dev
uses: dezren39/check-base-branch-action@v2
with:
protected-branches: "next"
default-branch: "dev"
update-branch: false
repo-token: "${{ secrets.GITHUB_TOKEN }}"
check_base-branch_feature:
name: Check-fix invalid head=>base pairs (feature)
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/next' && github.ref != 'refs/heads/main' && github.head_ref != 'dev' && github.head.ref != 'dev' && github.head_ref != 'next' && github.head.ref != 'next' && github.head_ref != 'main' && github.head.ref != 'main'
name: Check base-branch(feature) - main,next=>dev (FORCE)
uses: dezren39/check-base-branch-action@v2
with:
protected-branches: "main,next"
default-branch: "dev"
update-branch: true
repo-token: "${{ secrets.GITHUB_TOKEN }}"
43 changes: 0 additions & 43 deletions .github/workflows/release-notes-preview.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/release.preview-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release-Notes-Preview

on:
pull_request:
branches: [ main ]
issue_comment:
types: [ edited ]

jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Fetch tags
run: |
git fetch --prune --unshallow --tags
- name: Preview release notes
uses: snyk/[email protected]
with:
releaseBranch: main
env:
GITHUB_PR_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65 changes: 35 additions & 30 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,48 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
.*
/data
/app/data
!**/.git
!scripts/.*
!.scripts/.*
!scripts/*
!.scripts/*
!.scripts/.*
!.scripts/.*
!/scripts/.*
!/.scripts/.*
!/scripts/*
!/.scripts/*
!/.scripts/.*
!/.scripts/.*
**/node_modules/
**/data/
**/.env*
**/*.env
**/*.png
data
app/data
.*
!/.jshintrc
!/.eslintrc.yml
!/.eslinte.yml
!/.env.example
!/.env.twitter.example
!**/.git
!scripts/.*
!.scripts/.*
!scripts/*
!.scripts/*
!.scripts/.*
!.scripts/.*
!**/.scripts/*
!**/scripts/*
!**/.scripts
!**/scripts
!.git
!.github
!.gitignore
!.yarn
.yarnrc
!.yarnrc.temp
!.yarnrc.clean.temp
!.yarnrc.yml
!.yarnrc.yml.temp
!.yarnrc.yml.clean.temp
!.pnp.cjs
!/scripts/.*
!/.scripts/.*
!/scripts/*
!/.scripts/*
!/.scripts/.*
!/.scripts/.*
!/**/.scripts/*
!/**/scripts/*
!/**/.scripts
!/**/scripts
!/.git
!/.github
!/.gitignore
!/.yarn
!/.yarnrc
!/.yarnrc.temp
!/.yarnrc.clean.temp
!/.yarnrc.yml
!/.yarnrc.yml.temp
!/.yarnrc.yml.clean.temp
!/.pnp.cjs
# Logs
logs
*.log
Expand Down
28 changes: 28 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"esversion": 10,
"eqeqeq": true,
"curly": true,
"bitwise": true,
"forin": true,
"freeze": true,
"futurehostile": true,
"latedef": true,
"leanswitch": true,
"maxdepth": 3,
"maxparams": 4,
"maxstatements": 5,
"noarg": true,
"nocomma": true,
"nonbsp": true,
"nonew": true,
"noreturnawait": true,
"regexpu": true,
"singleGroups": true,
"strict": "implied",
"trailingcomma": true,
"undef": true,
"unused": true,
"varstmt": true,
"node": true,
"module": true
}
Binary file modified .yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit 14b2368

Please sign in to comment.