Skip to content

Commit 1d70411

Browse files
committed
Add workflows
1 parent 4090f40 commit 1d70411

3 files changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
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

.github/workflows/snapshot.yml

Lines changed: 8 additions & 0 deletions
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

.github/workflows/test.yml

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

0 commit comments

Comments
 (0)