Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: change setting
  • Loading branch information
luohoufu committed Jan 5, 2025
commit fc20ab1e10a2b2693f48ca5d48b809967b360177
19 changes: 14 additions & 5 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ on:
pull_request:
branches: [ "main" ]

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GO_VERSION: 1.23.4
NODEJS_VERSION: 16.20.2
steps:
Expand Down Expand Up @@ -42,8 +45,8 @@ jobs:
- name: Check nodejs toolchain
run: |
if ! command -v cnpm >/dev/null 2>&1; then
npm install -g rimraf --quiet --no-progress
npm install -g [email protected] --quiet --no-progress
npm install -g rimraf --quiet --no-progress --no-engine-strict
npm install -g [email protected] --quiet --no-progress --no-engine-strict
fi
node -v && npm -v && cnpm -v

Expand All @@ -60,12 +63,18 @@ jobs:
- name: Test console code
run: |
echo Home path is $HOME

# for console web
cd $GITHUB_WORKSPACE/console/web && cnpm install --quiet --no-progress && cnpm run build --quiet
# for unit
cd $GITHUB_WORKSPACE/console/web
cnpm install --quiet --no-progress --loglevel=error
cnpm run build --quiet

# for test workspace
mkdir -p $HOME/go/src/
ln -s $GITHUB_WORKSPACE $HOME/go/src/infini.sh
ls -lrt $HOME/go/src/infini.sh/

# for unit test
cd $HOME/go/src/infini.sh/console
echo Testing code at $PWD ...
make config test
Loading