diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01ee27c..9e43def 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,22 @@ jobs: - uses: Swatinem/rust-cache@v1.3.0 - run: cargo clippy --workspace --all-targets -- -D warnings - build_frontend: + check_frontend: + defaults: + run: + working-directory: frontend + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + cache: 'yarn' + cache-dependency-path: frontend/yarn.lock + - run: yarn install + - run: yarn run eslint + - run: yarn run tsc + + build_and_test_frontend: strategy: matrix: app: [ maker, taker ] @@ -43,7 +58,6 @@ jobs: cache: 'yarn' cache-dependency-path: frontend/yarn.lock - run: yarn install - - run: yarn run eslint - run: APP=${{ matrix.app }} yarn test - run: APP=${{ matrix.app }} yarn build diff --git a/frontend/package.json b/frontend/package.json index b4e93c6..1112258 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "vite build", "serve": "vite preview", "test": "vite-jest" },