From d930de848937ef1159bdb5a41becd814e5b7473f Mon Sep 17 00:00:00 2001 From: manhph Date: Wed, 24 Apr 2024 11:37:33 +0700 Subject: [PATCH] build(github): update --- .github/workflows/codeql.yaml | 6 +++++- .github/workflows/document.yaml | 10 ++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 0d86220..0c4da62 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -10,6 +10,10 @@ jobs: analyze: name: Static analysis with CodeQL runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + language: ["javascript-typescript"] steps: - name: Checkout code uses: actions/checkout@v3 @@ -17,7 +21,7 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: - languages: javascript, python, ruby + languages: ${{matrix.language}} - name: Build and analyze uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/document.yaml b/.github/workflows/document.yaml index ceca314..8f6fca7 100644 --- a/.github/workflows/document.yaml +++ b/.github/workflows/document.yaml @@ -15,15 +15,17 @@ jobs: root-build: [server] defaults: run: - working-directory: './${{ matrix.root-build }}' + working-directory: "./${{matrix.root-build}}" steps: - name: "Checkout" uses: actions/checkout@v3 - - name: "Use Nodejs ${{ matrix.node-version }}" + + - name: "Use Nodejs ${{matrix.node-version}}" uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: ${{matrix.node-version}} cache: npm - cache-dependency-path: './${{ matrix.root-build }}/package-lock.json' + cache-dependency-path: "./${{matrix.root-build}}/package-lock.json" + - name: "Install node_modules" run: npm install