Merge pull request #690 from traPtitech/impr/clickable-url #522
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
name: Dashboard-CI | |
defaults: | |
run: | |
working-directory: dashboard | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'dashboard/**' | |
pull_request: | |
paths: | |
- 'dashboard/**' | |
jobs: | |
packages: | |
name: Install Packages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
cache-dependency-path: dashboard/yarn.lock | |
- run: yarn install --frozen-lockfile | |
rome: | |
name: Format and Lint | |
runs-on: ubuntu-latest | |
needs: [packages] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
cache-dependency-path: dashboard/yarn.lock | |
- run: yarn install --frozen-lockfile | |
- run: yarn ci | |
typecheck: | |
name: Check types | |
runs-on: ubuntu-latest | |
needs: [packages] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
cache-dependency-path: dashboard/yarn.lock | |
- run: yarn install --frozen-lockfile | |
- run: yarn typecheck | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [packages] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
cache-dependency-path: dashboard/yarn.lock | |
- run: yarn install --frozen-lockfile | |
- run: yarn build |