Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| 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