ci: use node:20-bookworm image for test/lint/security jobs
This commit is contained in:
parent
0f04fe39f4
commit
e41103b9cc
@ -13,7 +13,7 @@ jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gitea-job-image
|
||||
image: node:20-bookworm
|
||||
steps:
|
||||
- name: Clone repo
|
||||
run: |
|
||||
@ -34,7 +34,7 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gitea-job-image
|
||||
image: node:20-bookworm
|
||||
steps:
|
||||
- name: Clone repo
|
||||
run: |
|
||||
@ -48,13 +48,6 @@ jobs:
|
||||
- name: Run tests with coverage
|
||||
run: npm test
|
||||
|
||||
- name: Upload coverage report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: coverage-report
|
||||
path: coverage/
|
||||
|
||||
docker-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -76,7 +69,7 @@ jobs:
|
||||
security:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gitea-job-image
|
||||
image: node:20-bookworm
|
||||
steps:
|
||||
- name: Clone repo
|
||||
run: |
|
||||
@ -97,8 +90,6 @@ jobs:
|
||||
build-result:
|
||||
needs: [lint, test, docker-build, security]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gitea-job-image
|
||||
if: always()
|
||||
steps:
|
||||
- name: Summary
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user