-
-
Notifications
You must be signed in to change notification settings - Fork 15
64 lines (60 loc) · 1.54 KB
/
Copy pathbuild.yml
File metadata and controls
64 lines (60 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build
on: [push, pull_request]
jobs:
build:
name: Build XAR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
- run: npm ci --ignore-scripts
- run: npm run build
- name: Upload XAR
uses: actions/upload-artifact@v7
with:
name: exist-function-documentation-xar
path: dist/*.xar
test:
name: Test (eXist latest)
needs: build
runs-on: ubuntu-latest
services:
exist:
image: existdb/existdb:latest
ports:
- 8080:8080
- 8443:8443
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
- run: npm ci --ignore-scripts
- name: Install Cypress binary
run: npx cypress install
- run: npm run build
- name: Install XAR
run: npx --yes @existdb/xst package install dist/exist-function-documentation-*.xar
env:
EXISTDB_USER: admin
EXISTDB_PASS:
- name: Run Cypress tests
run: npx cypress run
release:
name: Release
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
- run: npm ci --ignore-scripts
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}