Skip to content

Commit

Permalink
Merge 4c2f153 into 4e1a253
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Dec 28, 2019
2 parents 4e1a253 + 4c2f153 commit 80f671e
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on: [push]

jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-node@v1
- name: Restore node_modules
uses: actions/cache@v1
id: node-modules
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
- name: Restore .npm cache
if: steps.node-modules.outputs.cache-hit != 'true'
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-npm-cache-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-cache-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-npm-cache-
- name: Build Overlay Injector
run: cd captain-fact-overlay-injector && npm ci --prefer-offline --no-audit && npm run build && cd ..
- name: Install dependencies
if: steps.node-modules.outputs.cache-hit != 'true'
run: npm ci --prefer-offline --no-audit
- name: Run tests
run: npm run coverage
- name: Post tests coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/lcov.info
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
npm-debug.log
.DS_Store
.history

build/
dev/
Expand Down
2 changes: 1 addition & 1 deletion captain-fact-overlay-injector
Submodule captain-fact-overlay-injector updated 36 files
+1 βˆ’2 .babelrc
+3 βˆ’2 .eslintrc.yml
+36 βˆ’0 .github/workflows/ci.yml
+0 βˆ’5 .travis.yml
+23 βˆ’17 README.md
+7 βˆ’3 dev/tests_setup.js
+5 βˆ’0 jsconfig.json
+6,540 βˆ’4,247 package-lock.json
+43 βˆ’41 package.json
+18 βˆ’18 src/components/App/App.js
+1 βˆ’1 src/components/App/Configuration/default.js
+1 βˆ’2 src/components/App/Configuration/selectors.js
+7 βˆ’14 src/components/CFButton/CFButton.js
+10 βˆ’10 src/components/CFButton/__snapshots__/CFButton.spec.js.snap
+30 βˆ’18 src/components/Fact/Fact.js
+1 βˆ’2 src/components/Fact/FactsContainer.js
+3 βˆ’3 src/components/Fact/Source.js
+4 βˆ’4 src/components/Fact/__snapshots__/Fact.spec.js.snap
+2 βˆ’4 src/components/OnOffToggle/OnOffToggle.js
+24 βˆ’16 src/components/Sidebar/Header.js
+98 βˆ’56 src/components/Sidebar/Sidebar.js
+13 βˆ’8 src/components/Sidebar/__snapshots__/Header.spec.js.snap
+20 βˆ’7 src/components/Statement/Statement.js
+1 βˆ’2 src/components/Statement/record_speaker.js
+1 βˆ’2 src/components/Statement/reducer.js
+4 βˆ’5 src/components/Statement/selectors.js
+16 βˆ’0 src/components/Utils/Button.js
+7 βˆ’3 src/components/Utils/TimeDisplay.js
+3 βˆ’5 src/constants.js
+1 βˆ’2 src/i18n.js
+7 βˆ’12 src/index.js
+2 βˆ’4 src/lib/http_api.js
+3 βˆ’3 src/lib/language_detector.js
+1 βˆ’2 src/lib/video_adapters/html5.js
+1 βˆ’2 src/lib/video_adapters/youtube.js
+7 βˆ’7 webpack.config.js

0 comments on commit 80f671e

Please sign in to comment.