ci: fix working-directory defaults breaking pre-checkout steps
CI / device-agent-test (push) Has been cancelled
CI / dashboard-test (push) Has been cancelled
CI / build-server-core (push) Has been cancelled
CI / build-device-agent (push) Has been cancelled
CI / build-dashboard (push) Has been cancelled
CI / build-docs (push) Has been cancelled
CI / release (push) Has been cancelled
CI / server-core-test (push) Has been cancelled
CI / device-agent-test (push) Has been cancelled
CI / dashboard-test (push) Has been cancelled
CI / build-server-core (push) Has been cancelled
CI / build-device-agent (push) Has been cancelled
CI / build-dashboard (push) Has been cancelled
CI / build-docs (push) Has been cancelled
CI / release (push) Has been cancelled
CI / server-core-test (push) Has been cancelled
This commit is contained in:
@@ -11,9 +11,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
server-core-test:
|
server-core-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: apps/server-core
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure git auth for submodules
|
- name: Configure git auth for submodules
|
||||||
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
@@ -25,13 +22,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: '1.26'
|
go-version: '1.26'
|
||||||
- name: Test
|
- name: Test
|
||||||
|
working-directory: apps/server-core
|
||||||
run: go test ./... -tags dev -cover
|
run: go test ./... -tags dev -cover
|
||||||
|
|
||||||
device-agent-test:
|
device-agent-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: apps/device-agent
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure git auth for submodules
|
- name: Configure git auth for submodules
|
||||||
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
@@ -43,13 +38,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: '1.26'
|
go-version: '1.26'
|
||||||
- name: Test
|
- name: Test
|
||||||
|
working-directory: apps/device-agent
|
||||||
run: go test ./... -cover
|
run: go test ./... -cover
|
||||||
|
|
||||||
dashboard-test:
|
dashboard-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: apps/dashboard-ui
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure git auth for submodules
|
- name: Configure git auth for submodules
|
||||||
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
|
||||||
@@ -61,8 +54,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version: '24'
|
||||||
- name: Install
|
- name: Install
|
||||||
|
working-directory: apps/dashboard-ui
|
||||||
run: npm ci || npm install
|
run: npm ci || npm install
|
||||||
- name: Build
|
- name: Build
|
||||||
|
working-directory: apps/dashboard-ui
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
build-server-core:
|
build-server-core:
|
||||||
|
|||||||
Reference in New Issue
Block a user