Skip to content

Commit 5366a0e

Browse files
committed
add github actions to clojure-1.11-dev branch
1 parent 777456f commit 5366a0e

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

Diff for: .github/workflows/release.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release on demand
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
releaseVersion:
7+
description: "Version to release"
8+
required: true
9+
snapshotVersion:
10+
description: "Snapshot version after release"
11+
required: true
12+
13+
jobs:
14+
call-release:
15+
uses: clojure/build.ci/.github/workflows/release.yml@master
16+
with:
17+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
18+
snapshotVersion: ${{ github.event.inputs.snapshotVersion }}
19+
secrets: inherit

Diff for: .github/workflows/snapshot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Snapshot on demand
2+
3+
on: [workflow_dispatch]
4+
5+
jobs:
6+
call-snapshot:
7+
uses: clojure/build.ci/.github/workflows/snapshot.yml@master
8+
secrets: inherit

Diff for: .github/workflows/test.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
test:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest] # macOS-latest, windows-latest]
13+
java-version: ["8", "11", "17", "21"]
14+
distribution: ["temurin", "corretto"]
15+
profile: ["test-direct", "test-no-direct"]
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Java
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: ${{ matrix.java-version }}
23+
distribution: ${{ matrix.distribution }}
24+
cache: 'maven'
25+
- name: Build with Maven
26+
run: mvn -ntp -B -P${{ matrix.profile }} clean test

0 commit comments

Comments
 (0)