Skip to content

Commit

Permalink
Refine github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jul 29, 2023
1 parent a3f51a9 commit 1b8aa76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup the npm node
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
cache: 'npm'
cache-dependency-path: |
ui/package-lock.json
Expand All @@ -28,11 +28,7 @@ jobs:
with:
go-version: '>=1.16.0'

- name: Install and build
- name: Test by jest and Go
run: |
make build
- name: Test by jest
run: |
make test
make -j && make test -j
4 changes: 2 additions & 2 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ docker run --name srs --rm -it \
Run the platform backend, or run in GoLand:

```
```bash
(cd platform && go run .)
```

Run the platform react ui, or run in WebStorm:

```
```bash
(cd ui && npm install && npm start)
```

Expand Down
6 changes: 3 additions & 3 deletions ui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ build: npm build build-cn build-en
npm:
npm install

build: build-cn
build: build-cn npm

build-cn:
build-cn: npm
env PUBLIC_URL=/mgmt REACT_APP_LOCALE=zh BUILD_PATH=build/zh npm run build

build-en:
build-en: npm
env PUBLIC_URL=/mgmt REACT_APP_LOCALE=en BUILD_PATH=build/en npm run build

clean:
Expand Down

0 comments on commit 1b8aa76

Please sign in to comment.