chore: remove redundant submodule unit test jobs
This commit is contained in:
@@ -9,73 +9,7 @@ on:
|
||||
branches: [ "main", "master" ]
|
||||
|
||||
jobs:
|
||||
test-sso-manager:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Use Node.js 20.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: 'npm'
|
||||
cache-dependency-path: sso-manager-node/nodejs/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./sso-manager-node/nodejs
|
||||
run: npm ci || npm install
|
||||
|
||||
- name: Run tests
|
||||
working-directory: ./sso-manager-node/nodejs
|
||||
run: npm test
|
||||
|
||||
test-jump-host:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Use Node.js 20.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: 'npm'
|
||||
cache-dependency-path: jump-host/nodejs/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./jump-host/nodejs
|
||||
run: npm ci || npm install
|
||||
|
||||
- name: Run tests
|
||||
working-directory: ./jump-host/nodejs
|
||||
run: npm test
|
||||
|
||||
test-proxy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Use Node.js 20.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: 'npm'
|
||||
cache-dependency-path: proxy/nodejs/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./proxy/nodejs
|
||||
run: npm ci || npm install
|
||||
|
||||
- name: Run tests
|
||||
working-directory: ./proxy/nodejs
|
||||
run: npm test
|
||||
|
||||
build-telemetry-agent:
|
||||
build-theta-agent:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -88,11 +22,11 @@ jobs:
|
||||
go-version: '1.21'
|
||||
|
||||
- name: Build Agent
|
||||
working-directory: ./telemetry-agent
|
||||
working-directory: ./theta-agent
|
||||
run: go build -v ./...
|
||||
|
||||
docker-push:
|
||||
needs: [test-sso-manager, test-jump-host, test-proxy, build-telemetry-agent]
|
||||
needs: [build-theta-agent]
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user