diff --git a/.github/workflows/main.yml b/.github/workflows/build.yml similarity index 98% rename from .github/workflows/main.yml rename to .github/workflows/build.yml index f3ede2bd3..5d4fadaac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ on: - dev - ci-cd paths-ignore: - - '**/*.md' + - 'docs/**' jobs: build-and-deploy: diff --git a/.github/workflows/lint.yml b/.github/workflows/validate.yml similarity index 59% rename from .github/workflows/lint.yml rename to .github/workflows/validate.yml index 8906c98cc..6a0540d2c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/validate.yml @@ -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 @@ -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 ./...