Skip to content

Commit

Permalink
add github actions to clojure-1.11-dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Mar 8, 2024
1 parent 777456f commit 5366a0e
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release on demand

on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Version to release"
required: true
snapshotVersion:
description: "Snapshot version after release"
required: true

jobs:
call-release:
uses: clojure/build.ci/.github/workflows/release.yml@master
with:
releaseVersion: ${{ github.event.inputs.releaseVersion }}
snapshotVersion: ${{ github.event.inputs.snapshotVersion }}
secrets: inherit
8 changes: 8 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Snapshot on demand

on: [workflow_dispatch]

jobs:
call-snapshot:
uses: clojure/build.ci/.github/workflows/snapshot.yml@master
secrets: inherit
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
push:
workflow_dispatch:

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] # macOS-latest, windows-latest]
java-version: ["8", "11", "17", "21"]
distribution: ["temurin", "corretto"]
profile: ["test-direct", "test-no-direct"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
cache: 'maven'
- name: Build with Maven
run: mvn -ntp -B -P${{ matrix.profile }} clean test

0 comments on commit 5366a0e

Please sign in to comment.