Skip to content

Commit

Permalink
run unit test for spx-backedn on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nighca committed Mar 15, 2024
1 parent 3dda1f8 commit 75a9363
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- dev
- ci-cd
paths-ignore:
- '**/*.md'
- 'docs/**'

jobs:
build-and-deploy:
Expand Down
31 changes: 23 additions & 8 deletions .github/workflows/lint.yml → .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: CI
name: Validate (lint, test & ...)

on:
push:
branches:
- '**'
paths:
- 'spx-gui/**'
- '!**/*.md'
paths-ignore:
- 'docs/**'
pull_request:
branches:
- '**'
paths:
- 'spx-gui/**'
- '!**/*.md'
paths-ignore:
- 'docs/**'

jobs:
lint:

spx-gui-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -40,3 +40,18 @@ jobs:
- name: Run ESLint
working-directory: spx-gui
run: npm run lint

spx-backend-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go & Go+
uses: goplus/setup-goplus@v1
with:
go-version: '1.21.0'
gop-version: '1.2.5'

- name: Run unit test cases
working-directory: spx-backend
run: go test ./...

0 comments on commit 75a9363

Please sign in to comment.