-
Notifications
You must be signed in to change notification settings - Fork 31
64 lines (61 loc) · 1.72 KB
/
Copy pathtest-and-snapshot.yml
File metadata and controls
64 lines (61 loc) · 1.72 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: Master & Snapshot
on:
push:
branches:
- "master"
jobs:
build-and-snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@4c7a6f613e5089821bb3bb2a33a3ee115578580d
with:
cli: '1.12.5.1664'
bb: 'latest'
- name: Cache All The Things
uses: actions/cache@v6
with:
path: |
~/.m2/repository
~/.gitlibs
~/.clojure
~/.cpcache
~/.deps.clj
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn', '**/bb.edn') }}
- name: Run All Tests, then Build & Deploy Snapshot
run: bb ci:deploy snapshot jdk21
env:
CLOJARS_PASSWORD: ${{secrets.DEPLOY_TOKEN}}
CLOJARS_USERNAME: ${{secrets.DEPLOY_USERNAME}}
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17', '21' ]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@4c7a6f613e5089821bb3bb2a33a3ee115578580d
with:
cli: '1.12.5.1664'
bb: 'latest'
- name: Cache All The Things
uses: actions/cache@v6
with:
path: |
~/.m2/repository
~/.clojure
~/.cpcache
~/.deps.clj
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn', '**/bb.edn') }}
- name: Run Tests
run: bb test jdk${{ matrix.java }}