Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add frontend #186

Merged
merged 41 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
c643340
Add fronend
Dec 8, 2021
fea64b6
Fix CI
Dec 8, 2021
6f17124
Fix packages
Dec 8, 2021
a331770
Move configs to collector directory
Dec 9, 2021
384b592
Set working directory for github actions
Dec 9, 2021
5172f9f
Move config to root folder
Jan 17, 2022
076ba57
Update project copy and theme
Jan 17, 2022
5a9f7a1
Remove web vitals
Jan 17, 2022
5178f2f
Update react scripts
Jan 17, 2022
1102bf0
Use stable es version
Jan 17, 2022
81f7071
Theme config to ts
Jan 17, 2022
2bf93d0
Move types to dev dependencies
Jan 17, 2022
046453d
Change homepage url in packe json
Jan 17, 2022
115f552
Add prettier
Jan 17, 2022
068289d
Use production data
Jan 17, 2022
edd4314
Dont use buggy truncate component
Jan 19, 2022
4ed6c98
Add key to article tags
Jan 19, 2022
0f525d1
Rename Link component to ExtLink
Jan 19, 2022
050ec90
Test utils
Jan 19, 2022
0ec81c0
Test components
Jan 19, 2022
b1173c8
Remove rest of truncate component
Jan 19, 2022
c64a099
Add keys
Jan 20, 2022
8c218db
Update react-markdown lib
Jan 20, 2022
68f7b96
Test pages
Jan 20, 2022
376379e
Move react scripts to dev dependencies
Jan 20, 2022
4eab270
Run tests in CI
Jan 20, 2022
a038413
Fix workflows
Jan 20, 2022
56c4cd4
Render markdown
Jan 20, 2022
7bbf500
Highlight projects
Jan 20, 2022
62a60bb
Update readme
Jan 20, 2022
7f7f75b
Simplified collector package.json
marekdedic Jan 20, 2022
c529206
Simplified collector jest config
marekdedic Jan 20, 2022
164f7c4
Fixed collector input and output file locations
marekdedic Jan 20, 2022
ea078ca
Fixed frontend build output location
marekdedic Jan 20, 2022
bd81707
Split CI
marekdedic Jan 20, 2022
b050390
Fixed test regressions caused by change in collector input file location
marekdedic Jan 20, 2022
6476187
Added frontend test coverage
marekdedic Jan 20, 2022
33e35d8
Add test for IssuesList component
Feb 1, 2022
c3a6efc
ScrollToTop component test
Feb 1, 2022
871b8b2
Ignore root files for tests
Feb 1, 2022
884a2ed
Fix ScrollToTop test
Feb 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 56 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ env:
cache-version: 1

jobs:
build-frontend:
frontend-build:
name: "Build frontend"
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/frontend
steps:
- name: "Checkout"
uses: actions/[email protected]
Expand All @@ -30,11 +33,55 @@ jobs:

- name: "Build"
run: |
npm run build-frontend
npm run build

lint:
name: "Lint"
frontend-test:
name: "Test frontend"
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/frontend
steps:
- name: "Checkout"
uses: actions/[email protected]

- name: "Cache NPM dependencies"
uses: actions/[email protected]
with:
path: "~/.npm"
key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }}
restore-keys: |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }}
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-
npm-dependencies-${{ runner.os }}-

- name: "Install NPM dependencies"
run: |
npm ci

- name: "Test"
run: |
npm run test

- name: "Upload coverage results"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
curl -s https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --import
curl -Os https://uploader.codecov.io/latest/linux/codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpg --verify codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -s coverage

collector-lint:
name: "Lint collector"
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/collector
steps:
- name: "Checkout"
uses: actions/[email protected]
Expand All @@ -57,9 +104,12 @@ jobs:
run: |
npm run lint

test:
name: "Test"
collector-test:
name: "Test collector"
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/collector
steps:
- name: "Checkout"
uses: actions/[email protected]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/collect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
collect:
name: "Collect"
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/collector
steps:
- name: "Checkout"
uses: actions/[email protected]
Expand Down Expand Up @@ -44,6 +47,9 @@ jobs:
name: "Deploy"
runs-on: ubuntu-latest
needs: collect
defaults:
run:
working-directory: packages/collector
steps:
- name: "Checkout"
uses: actions/[email protected]
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
build:
name: "Build"
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/frontend
steps:
- name: "Checkout"
uses: actions/[email protected]
Expand All @@ -29,13 +32,13 @@ jobs:

- name: "build"
run: |
npm run build-frontend
npm run build

- name: "Upload artifact"
uses: actions/upload-artifact@v2
with:
name: "frontend"
path: packages/frontend/dist
path: packages/frontend/build

deploy:
name: "Deploy"
Expand All @@ -49,13 +52,13 @@ jobs:
uses: actions/download-artifact@v2
with:
name: "frontend"
path: dist
path: packages/frontend/build

- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
folder: packages/frontend/build
clean: true
clean-exclude: |
CNAME
Expand Down
26 changes: 0 additions & 26 deletions jest.config.ts

This file was deleted.

Loading