mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 18:46:09 +00:00
ci: use node v20 for web build, clean up
This commit is contained in:
parent
2beacce70d
commit
786fd0555e
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
|
@ -9,8 +9,7 @@ jobs:
|
||||||
name: check lockfile correctness
|
name: check lockfile correctness
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
- name: Check that lockfile does not need an update
|
- name: Check that lockfile does not need an update
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
@ -19,21 +18,20 @@ jobs:
|
||||||
name: web sanity check
|
name: web sanity check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: lts
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
- name: Run test script
|
- run: .github/test.sh web
|
||||||
run: .github/test.sh web
|
|
||||||
|
|
||||||
test-api:
|
test-api:
|
||||||
name: api sanity check
|
name: api sanity check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
- name: Run test script
|
- run: .github/test.sh api
|
||||||
run: .github/test.sh api
|
|
||||||
|
|
||||||
check-services:
|
check-services:
|
||||||
name: test service functionality
|
name: test service functionality
|
||||||
|
@ -41,8 +39,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
services: ${{ steps.checkServices.outputs.service_list }}
|
services: ${{ steps.checkServices.outputs.service_list }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
- id: checkServices
|
- id: checkServices
|
||||||
run: pnpm i --frozen-lockfile && echo "service_list=$(node api/src/util/test-ci get-services)" >> "$GITHUB_OUTPUT"
|
run: pnpm i --frozen-lockfile && echo "service_list=$(node api/src/util/test-ci get-services)" >> "$GITHUB_OUTPUT"
|
||||||
|
@ -56,7 +53,6 @@ jobs:
|
||||||
service: ${{ fromJson(needs.check-services.outputs.services) }}
|
service: ${{ fromJson(needs.check-services.outputs.services) }}
|
||||||
name: "test service: ${{ matrix.service }}"
|
name: "test service: ${{ matrix.service }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
- run: pnpm i --frozen-lockfile && node api/src/util/test-ci run-tests-for ${{ matrix.service }}
|
- run: pnpm i --frozen-lockfile && node api/src/util/test-ci run-tests-for ${{ matrix.service }}
|
Loading…
Reference in a new issue