-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 982 Bytes
/
all-tests.yaml
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
name: All tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install Node dependencies
run: npm install ws
- name: Install Clojure Tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/deps.edn') }}
restore-keys: ${{ runner.os }}-m2
- name: Run tests
run: |
export PARTS_DB_PATH="$GITHUB_WORKSPACE/db/parts_test.db"
clojure -X:test/env:test/run
env:
GITHUB_WORKSPACE: ${{ github.workspace }}