-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/231-dev-email
- Loading branch information
Showing
130 changed files
with
18,147 additions
and
17,852 deletions.
There are no files selected for viewing
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,3 @@ | ||
# This helps prevent conflicts (well, at last when GitHub implements it...) | ||
# See: https://github.com/isaacs/github/issues/487 | ||
CHANGELOG.md merge=union |
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
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,82 @@ | ||
name: DepCheck | ||
on: | ||
pull_request: | ||
types: ["opened", "reopened", "synchronize"] | ||
paths: | ||
- .github/workflows/depcheck.yml | ||
- client-admin/** | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CI_COMMIT_ID: ${{ github.event.pull_request.head.sha || github.sha }} | ||
CI_REPO_NAME: ${{ github.repository }} | ||
steps: | ||
# See: https://github.community/t/if-expression-with-context-variable/16558/6 | ||
- name: Check if secrets available | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
unset HAS_SECRET | ||
if [ -n "$GITHUB_TOKEN" ]; then HAS_SECRET=true; fi | ||
echo ::set-env name=HAS_SECRET::${HAS_SECRET} | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2.1.1 | ||
with: | ||
node-version: 14.4.0 | ||
|
||
# See: https://github.com/taskworld/commit-status | ||
- name: Install commit-status CLI tool | ||
run: npm install -g commit-status | ||
|
||
- name: Initiate commit status placeholders | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
run: | | ||
# commit-status <state> <context> <description> <link> | ||
commit-status pending "DepCheck / dependencies" "Detecting unused packages..." | ||
commit-status pending "DepCheck / devDependencies" "Detecting unused packages..." | ||
- uses: actions/checkout@v2.3.2 | ||
|
||
- name: Install depcheck CLI tool | ||
run: npm install -g depcheck | ||
|
||
- name: Install project dependencies | ||
working-directory: client-admin | ||
run: npm install | ||
|
||
- name: Run depcheck and save output | ||
id: depcheck | ||
working-directory: client-admin | ||
env: | ||
# See: https://github.com/depcheck/depcheck#special | ||
DEPCHECK_SPECIALS: "webpack,babel,eslint,prettier,bin" | ||
# Why ignoring? | ||
# - prettier: because it's needed by eslint-plugin-prettier, but peerDependencies aren't yet supported. | ||
# See: https://github.com/depcheck/depcheck/issues/522 | ||
# - webpack-cli: Needed for `webpack` command, but provide `webpack-cli` bin, which confuses depcheck. | ||
DEPCHECK_IGNORES: "prettier,webpack-cli" | ||
run: | | ||
# Note: Commit status descriptions can have 140 characters max. (We add an ellipsis in the final step as final char) | ||
# Suppress failing exit codes with `true`. | ||
depcheck --specials "$DEPCHECK_SPECIALS" --ignores "$DEPCHECK_IGNORES" --json > .results.json || true | ||
echo ::set-output name=dependencies::$(cat .results.json | jq '.dependencies | join(", ") | .[:139]' --raw-output) | ||
echo ::set-output name=devdependencies::$(cat .results.json | jq '.devDependencies | join(", ") | .[:139]' --raw-output) | ||
- name: Set commit status messages and success states | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
run: | | ||
if [ "${{ steps.depcheck.outputs.dependencies }}" = "" ]; then | ||
commit-status success "DepCheck / dependencies" "No unused packages detected." | ||
else | ||
commit-status failure "DepCheck / dependencies" "${{ steps.depcheck.outputs.dependencies }}…" | ||
fi | ||
if [ "${{ steps.depcheck.outputs.devdependencies }}" = "" ]; then | ||
commit-status success "DepCheck / devDependencies" "No unused packages detected." | ||
else | ||
commit-status failure "DepCheck / devDependencies" "${{ steps.depcheck.outputs.devdependencies }}…" | ||
fi |
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,37 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
types: ["opened", "reopened", "synchronize"] | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.3.2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2.1.0 | ||
with: | ||
node-version: 14.4.0 | ||
|
||
- name: Get npm cache directory | ||
id: npm-cache | ||
run: | | ||
echo "::set-output name=dir::$(npm config get cache)" | ||
- name: Restore npm cache directory | ||
uses: actions/cache@v2.0.0 | ||
with: | ||
path: ${{ steps.npm-cache.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: "Install & Build: client-admin" | ||
working-directory: client-admin | ||
run: npm install | ||
|
||
- name: "ESLint: client-admin" | ||
working-directory: client-admin | ||
run: npm run lint |
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,33 @@ | ||
name: Test Math/Clojure | ||
|
||
on: | ||
push: | ||
branches: ["dev", "504-clj-tests"] | ||
# Note: Only configured for client-admin right now. | ||
paths: | ||
- .github/workflows/test-clojure.yml | ||
- math/** | ||
pull_request: | ||
types: ["opened", "reopened", "synchronize"] | ||
paths: | ||
- .github/workflows/test-clojure.yml | ||
- math/** | ||
|
||
jobs: | ||
test-clj: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.3.2 | ||
|
||
- uses: actions/setup-java@v1.4.1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- uses: DeLaGuardo/setup-clojure@master | ||
with: | ||
tools-deps: 1.10.1 | ||
lein: 2.9.4 | ||
|
||
- working-directory: math | ||
# Runs all except integration tests which require database and setup/teardown | ||
run: "lein test :default" |
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,16 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [unreleased] | ||
|
||
### Changed | ||
- Improved docs for configuring comment translation. [`#319`][] | ||
|
||
### Added | ||
- Added support for configuring comment translation credentials via base64-encoded string, stored in `GOOGLE_CREDENTIALS_BASE64` envvar. [`#319`][] | ||
|
||
[`#319`]: https://github.com/pol-is/polisServer/issues/319 |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ module.exports = { | |
"files": [ | ||
{ | ||
"path": "dist/*.js", | ||
"maxSize": "500 kB", | ||
"maxSize": "250 kB", | ||
}, | ||
] | ||
}; |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
env: | ||
browser: true | ||
es2020: true | ||
jquery: true | ||
globals: | ||
Intercom: readonly | ||
FB: readonly | ||
plugins: | ||
- babel | ||
- react | ||
extends: | ||
- standard | ||
- prettier-standard | ||
- eslint:recommended | ||
- plugin:react/recommended | ||
- prettier/react | ||
rules: | ||
# TODO: Migrate to camelcase. | ||
# snake_case API params and properties makes this a tangled process. | ||
camelcase: off | ||
parser: babel-eslint | ||
parserOptions: | ||
ecmaFeatures: | ||
jsx: true | ||
ecmaVersion: 11 | ||
sourceType: module | ||
settings: | ||
react: | ||
version: detect |
Oops, something went wrong.