-
Notifications
You must be signed in to change notification settings - Fork 38
84 lines (70 loc) · 1.91 KB
/
nevergreen.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Nevergreen CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
env:
CI: true
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 22.0.1
- name: Install clojure tools-deps
uses: DeLaGuardo/setup-clojure@11.0
with:
lein: 2.9.10
- name: Clojure - dependencies
run: lein deps
- name: Clojure - tests
run: |
lein coverage
lein lint
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 22.2.0
- name: node - dependencies
run: npm ci
- name: node - tests
run: |
npm run check-types
npm run test:coverage
npm run lint
- name: Package
run: |
npm run build:prod
lein uberjar
- name: Run Cypress
uses: cypress-io/github-action@v5
env:
CYPRESS_BASE_URL: 'http://localhost:5000'
CYPRESS_TRAY_URL: 'https://raw.githubusercontent.com/build-canaries/nevergreen/main/cctray_xml_feed_mock/resources/cctray.xml'
CYPRESS_TRAY_URL_TOKEN: ''
CYPRESS_TRAY_TOKEN: ''
CYPRESS_TRAY_USERNAME: ''
CYPRESS_TRAY_PASSWORD: ''
with:
start: java -jar target/nevergreen-standalone.jar
wait-on: http://localhost:5000
- name: Store test reports
uses: actions/upload-artifact@v3
if: always()
with:
name: test-reports
path: |
target/coverage-reports
target/test-reports
- name: Store Nevergreen artifact
uses: actions/upload-artifact@v3
with:
name: nevergreen-jar
path: target/nevergreen-standalone.jar