CI: standard build/test pipeline (wave-1 rollout; node-free checkouts, job timeout)
All checks were successful
build / build-test (push) Successful in 30s
All checks were successful
build / build-test (push) Successful in 30s
This commit is contained in:
parent
65ec128efe
commit
6992c236dc
1 changed files with 20 additions and 0 deletions
20
.gitea/workflows/build.yml
Normal file
20
.gitea/workflows/build.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
name: build
|
||||||
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-test:
|
||||||
|
runs-on: docker
|
||||||
|
container: node:20-bookworm
|
||||||
|
timeout-minutes: 15
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
run: git clone --depth 1 ${{ github.server_url }}/${{ github.repository }}.git .
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
run: npm ci || npm install
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npm run build --if-present
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: npm test --if-present
|
||||||
Loading…
Add table
Add a link
Reference in a new issue