Skip to content

Commit 72d512b

Browse files
committed
ci(check): check.yml
1 parent 0893296 commit 72d512b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Diff for: .github/workflows/check.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v0.*'
7+
- 'v1.*'
8+
branches:
9+
- 'master'
10+
- 'ci/*'
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Cache IDEA downloading
18+
id: cache-idea
19+
uses: actions/cache@v4
20+
with:
21+
path: ~/idea-IC-*
22+
key: ${{ runner.os }}-ideaIC-2024.3.1.1
23+
24+
- name: Install IntelliJ IDEA
25+
if: steps.cache-idea.outputs.cache-hit != 'true'
26+
run: curl https://download.jetbrains.com/idea/ideaIC-2024.3.1.1.tar.gz -L | tar -xzf - -C ~
27+
28+
- uses: actions/checkout@v3
29+
30+
- name: Reformat
31+
run: ~/idea-IC-*/bin/format.sh -r -m *.kt,*.kts,*.java .
32+
- name: Check
33+
run: git diff --exit-code --color
34+

0 commit comments

Comments
 (0)