Skip to content

Commit

Permalink
build(github): update
Browse files Browse the repository at this point in the history
  • Loading branch information
HugManh committed Apr 24, 2024
1 parent 1920e5e commit d930de8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ 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

- 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
10 changes: 6 additions & 4 deletions .github/workflows/document.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d930de8

Please sign in to comment.