Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

chore: cleanup types warnings #1367

Merged
merged 8 commits into from
Sep 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 13 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,35 +61,31 @@ jobs:
fetch-depth: 0
repository: 'coderplanets/coderplanets_web'
path: 'frontend_server'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: (Frontend) setup node env
uses: actions/setup-node@v2
with:
node-version: '16.13.0'
- name: (Frontend) Install Packages
working-directory: ./frontend_server
run: yarn
run: npm install
- name: (Frontend) Setup Config CMD Tools
working-directory: ./frontend_server
run: chmod +x ./utils/bin/jq-linux; ./utils/bin/jq-linux -s '.[0] * .[1]' config/config.json config/config.ci.json > /tmp/config.json; cp /tmp/config.json ./config/config.json
- name: (Frontend) Build Project
working-directory: ./frontend_server
run: npm run build.ci
- name: check /etc/hosts
working-directory: ./frontend_server
run: echo "#>>>>#"; cat /etc/hosts; pwd; echo "#>>>>#"
- name: cache the build
uses: actions/cache@v2
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-

# - name: (Frontend) Check Bundle Size
# working-directory: ./frontend_server
# run: BUNDLEWATCH_GITHUB_TOKEN=${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} npm run size.check
Expand Down
7 changes: 7 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { IziToast } from 'iziToast'

declare global {
interface IWindow extends Window {
iziToast: IziToast
}
}
Loading