-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from nimblehq/release/2.2.0
Release 2.2.0
- Loading branch information
Showing
27 changed files
with
386 additions
and
186 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
# Team Lead | ||
* @carryall | ||
|
||
# Team Members | ||
* @bterone @hanam1ni @hoangmirs @malparty @rosle @tyrro | ||
# Team | ||
# @carryall is the Team Lead and the others are team members | ||
* @carryall @bterone @hanam1ni @hoangmirs @malparty @rosle @tyrro | ||
|
||
# Engineering Leads | ||
CODEOWNERS @nimblehq/engineering-leads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test | ||
|
||
on: push | ||
|
||
jobs: | ||
test: | ||
name: Bootstrap app, run linters and tests with Node ${{ matrix.node }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [14, 16] | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node and restore cached dependencies | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'npm' | ||
|
||
- name: Bootstrap React App | ||
run: npx create-react-app test-app --template file:./ | ||
|
||
- name: Run linters | ||
working-directory: ./test-app | ||
run: npm run codebase:lint | ||
|
||
- name: Run unit tests | ||
working-directory: ./test-app | ||
run: npm run test | ||
|
||
- name: Run integration tests | ||
working-directory: ./test-app | ||
run: npm run cypress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
# dependencies | ||
/node_modules | ||
|
||
# misc | ||
.idea/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,3 @@ | ||
module.exports = { | ||
env: { | ||
es6: true, | ||
browser: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
extends: [ | ||
'@nimblehq/eslint-config-nimble', | ||
'plugin:react/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:jsx-a11y/recommended', | ||
'plugin:import/errors', | ||
'plugin:prettier/recommended', | ||
], | ||
overrides: [ | ||
{ | ||
files: 'src/tests/**/*.test.ts', | ||
extends: ['plugin:jest/recommended', 'plugin:jest/style'], | ||
}, | ||
{ | ||
files: 'cypress/**/*.ts', | ||
extends: ['plugin:cypress/recommended'], | ||
}, | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
rules: { | ||
'react-hooks/rules-of-hooks': 'error', | ||
'react-hooks/exhaustive-deps': 'warn', | ||
'react/jsx-filename-extension': [2, { extensions: ['.tsx'] }], | ||
'import/order': [ | ||
'error', | ||
{ | ||
groups: ['builtin', 'external', 'internal'], | ||
pathGroups: [ | ||
{ | ||
pattern: 'react*', | ||
group: 'external', | ||
position: 'before', | ||
}, | ||
{ | ||
pattern: 'css/*|*.scss|*.svg|.png', | ||
group: 'internal', | ||
position: 'after', | ||
}, | ||
], | ||
pathGroupsExcludedImportTypes: ['react'], | ||
'newlines-between': 'always', | ||
alphabetize: { | ||
order: 'asc', | ||
caseInsensitive: true, | ||
}, | ||
}, | ||
], | ||
'import/extensions': [ | ||
'error', | ||
'never', | ||
{ | ||
scss: 'always', | ||
svg: 'always', | ||
png: 'always', | ||
json: 'always', | ||
spec: 'always', | ||
}, | ||
], | ||
'no-use-before-define': 'off', | ||
'no-unused-vars': 'off', | ||
'no-shadow': 'off', | ||
'@typescript-eslint/no-shadow': 'error', | ||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], | ||
'@typescript-eslint/no-use-before-define': ['error'], | ||
'prettier/prettier': ['error'], | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
'import/resolver': { | ||
typescript: {}, | ||
node: { | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
moduleDirectory: ['node_modules', 'src/'], | ||
}, | ||
}, | ||
}, | ||
} | ||
extends: ['@nimblehq/eslint-config-nimble-react'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Deploy to Netlify | ||
|
||
on: | ||
push: | ||
branches: ['main', 'master'] | ||
workflow_dispatch: | ||
inputs: | ||
deploy-msg: | ||
description: 'Deploy Message (visible in Netlify)' | ||
required: true | ||
|
||
jobs: | ||
deploy: | ||
name: Build and Deploy to Netlify | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Install modules | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: './build' | ||
deploy-message: "Deploy from GitHub Actions: ${{ github.event.inputs.deploy-msg }}" | ||
production-deploy: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Deploy Preview to Netlify | ||
|
||
on: [pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
deploy-preview: | ||
name: Build and Deploy preview on Netlify | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Install modules | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: './build' | ||
deploy-message: '#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 1 |
Oops, something went wrong.