Skip to content

Commit d324d5a

Browse files
committed
Configure release
1 parent 3ea7045 commit d324d5a

File tree

6 files changed

+84
-11
lines changed

6 files changed

+84
-11
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "gradle"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
ignore:
9+
- dependency-name: "kotlin"
10+
versions: [ "2.x" ]
11+
commit-message:
12+
prefix: "[deps]"

.github/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
changelog:
3+
exclude:
4+
labels:
5+
- ignore-for-release
6+
categories:
7+
- title: Breaking Changes 🛠
8+
labels:
9+
- breaking-change
10+
- title: Exciting New Features 🎉
11+
labels:
12+
- enhancement
13+
- title: Other Changes
14+
labels:
15+
- "*"

.github/workflows/build.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
1+
---
12
name: Build project
2-
on: [ push ]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- ".github/**"
9+
- "src/**"
10+
- "build.gradle"
11+
- "gradle.properties"
312
jobs:
413
build:
514
name: Build
615
runs-on: ubuntu-latest
716
steps:
8-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
918

10-
- uses: actions/setup-java@v3
19+
- uses: actions/setup-java@v4
1120
with:
1221
distribution: "corretto"
1322
java-version: "17"
1423
cache: "gradle"
1524

16-
- name: Build project
17-
uses: eskatos/gradle-command-action@v1
25+
- name: Validate
26+
uses: pre-commit/action@v3.0.0
27+
28+
- name: Build and Test
29+
run: ./gradlew clean build -PskipOn=DEV
30+
31+
- name: Upload coverage to Codecov
32+
if: ${{ !cancelled() }}
33+
uses: codecov/codecov-action@v4
1834
with:
19-
dependencies-cache-enabled: true
20-
arguments: clean build -PskipOn=DEV
35+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Publish
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
jobs:
8+
publish:
9+
name: Publish
10+
runs-on: ubuntu-latest
11+
permissions:
12+
packages: write
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-java@v4
18+
with:
19+
distribution: "corretto"
20+
java-version: "17"
21+
cache: "gradle"
22+
23+
- name: Publish artefacts
24+
run: ./gradlew publish
25+
env:
26+
GITHUB_USER: ${{ secrets.GITHUB_USER }}
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Create release
30+
uses: softprops/action-gh-release@v2

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Build project](https://github.com/Romanow/skip-method/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/Romanow/skip-method/actions/workflows/build.yml)
2+
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
23

34
# Пропуск вызова метода в тестах
45

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ plugins {
1010

1111
ext {
1212
junitVersion = "5.11.0"
13-
mockitoVersion = "3.5.11"
14-
assertjVersion = "3.19.0"
15-
aspectjVersion = "1.9.20"
16-
lombokVersion = "1.18.16"
13+
mockitoVersion = "5.13.0"
14+
assertjVersion = "3.26.3"
15+
aspectjVersion = "1.9.22.1"
16+
lombokVersion = "1.18.34"
1717
}
1818

1919
idea {

0 commit comments

Comments
 (0)