Skip to content

Commit

Permalink
Merge pull request #186 from skaut/add-frontend
Browse files Browse the repository at this point in the history
Add frontend
  • Loading branch information
Dominik Bláha authored Feb 1, 2022
2 parents 06c8f46 + 884a2ed commit 2cd7580
Show file tree
Hide file tree
Showing 94 changed files with 55,437 additions and 4,999 deletions.
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

0 comments on commit 2cd7580

Please sign in to comment.