diff --git a/.github/workflows/app-ci.yml b/.github/workflows/app-ci.yml index 73499eb..565cf9b 100644 --- a/.github/workflows/app-ci.yml +++ b/.github/workflows/app-ci.yml @@ -8,7 +8,7 @@ on: jobs: build: - name: Build and lint app on Node ${{ matrix.node }} and ${{ matrix.os }} + name: Build and lint app on Node 15 and ${{ matrix.os }} defaults: run: working-directory: ./app @@ -16,10 +16,6 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node: - - '14.x' - - '15.x' - - '16.x' os: - ubuntu-latest - windows-latest @@ -32,10 +28,10 @@ jobs: ref: ${{ github.head_ref }} fetch-depth: 0 - - name: Use Node ${{ matrix.node }} + - name: Use Node 15 uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node }} + node-version: '15' - name: Get yarn cache directory path id: yarn-cache-dir-path @@ -50,6 +46,9 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- + - name: Test path + run: ls + - name: Lint run: yarn lint diff --git a/app/src/server/routes/404.ts b/app/src/server/routes/404.ts index 4f3b60f..98a3cdd 100644 --- a/app/src/server/routes/404.ts +++ b/app/src/server/routes/404.ts @@ -4,6 +4,6 @@ const router = Router(); router.use(json()); -router.use((_req, res) => res.send([false, `${_req.path} does not exist`, 404])); +router.use((req, res) => res.send([false, `${req.path} does not exist`, 404])); export default router;