Skip to content

Commit 4593587

Browse files
authored
Merge pull request #5 from OpenVoxProject/ci
Delete unused mend workflow & Cleanup CI configuration
2 parents 894007a + f0bb3a1 commit 4593587

File tree

3 files changed

+48
-104
lines changed

3 files changed

+48
-104
lines changed

.github/workflows/clojure-linting.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/mend.yaml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/pr-testing.yaml

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,58 @@
1-
name: PR Testing
1+
---
2+
name: lein_test
23

34
on:
4-
workflow_dispatch:
5-
pull_request:
6-
types: [opened, reopened, edited, synchronize]
7-
paths: ['src/**','test/**','project.clj']
5+
pull_request: {}
6+
push:
7+
branches:
8+
- main
89

910
jobs:
10-
pr-testing:
11-
name: PR Testing
11+
run-lein-tests:
12+
name: lein test - Java ${{ matrix.java }}
13+
runs-on: ubuntu-latest
1214
strategy:
1315
fail-fast: false
1416
matrix:
15-
version: ['11', '17']
16-
runs-on: ubuntu-latest
17+
java:
18+
- '17'
19+
- '11'
1720
steps:
18-
- name: checkout repo
19-
uses: actions/checkout@v3
21+
- name: Check out repository code
22+
uses: actions/checkout@v4
23+
- name: Setup java
24+
uses: actions/setup-java@v4
2025
with:
21-
submodules: recursive
22-
- name: setup java
23-
uses: actions/setup-java@v3
26+
distribution: temurin
27+
java-version: ${{ matrix.java }}
28+
- name: Install Clojure tools
29+
uses: DeLaGuardo/[email protected]
2430
with:
25-
distribution: 'temurin'
26-
java-version: ${{ matrix.version }}
27-
- name: clojure tests
28-
run: lein test
29-
timeout-minutes: 30
31+
cli: latest # Clojure CLI based on tools.deps
32+
lein: latest # Leiningen
33+
boot: latest # Boot.clj
34+
bb: latest # Babashka
35+
clj-kondo: latest # Clj-kondo
36+
cljstyle: latest # cljstyle
37+
zprint: latest # zprint
38+
- name: kondo lint
39+
run: clj-kondo --lint src test
40+
- name: eastwood lint
41+
run: |
42+
java -version
43+
lein eastwood
44+
- name: Run lein tests with update profile
45+
run: |
46+
set -x
47+
set -e
48+
lein version
49+
echo "Running tests"
50+
lein -U test
51+
52+
tests:
53+
needs:
54+
- run-lein-tests
55+
runs-on: ubuntu-24.04
56+
name: Test suite
57+
steps:
58+
- run: echo Test suite completed

0 commit comments

Comments
 (0)