Skip to content

Commit 6488f3f

Browse files
authored
Drop CircleCI, adopt GitHub Actions (#1489)
2 parents 7077196 + 6b67bf1 commit 6488f3f

File tree

3 files changed

+83
-161
lines changed

3 files changed

+83
-161
lines changed

.circleci/config.yml

Lines changed: 0 additions & 161 deletions
This file was deleted.

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ ij_java_names_count_to_use_import_on_demand = 999
2121

2222
[*.xml.mustache]
2323
indent_style = space
24+
25+
[*.{yml,yaml}]
26+
indent_style = space
27+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# BUILDCACHE_USER
2+
# BUILDCACHE_PASS
3+
# - rw access to buildcache.diffplug.com
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches: [main]
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
jobs:
13+
sanityCheck:
14+
name: spotlessCheck assemble testClasses
15+
runs-on: ubuntu-latest
16+
env:
17+
buildcacheuser: ${{ secrets.BUILDCACHE_USER }}
18+
buildcachepass: ${{ secrets.BUILDCACHE_PASS }}
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
- name: Install JDK 11
25+
uses: actions/setup-java@v3
26+
with:
27+
distribution: "temurin"
28+
java-version: 11
29+
cache: gradle
30+
- name: spotlessCheck
31+
run: ./gradlew spotlessCheck --build-cache
32+
- name: assemble testClasses
33+
run: ./gradlew assemble testClasses --build-cache -PSPOTLESS_EXCLUDE_MAVEN=true
34+
# If this gets resolved, remove the EXCLUDE_MAVEN https://github.com/diffplug/spotless/issues/554
35+
build:
36+
needs: sanityCheck
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
kind: [maven, gradle]
41+
jre: [8, 11, 17]
42+
os: [ubuntu-latest]
43+
include:
44+
# test windows at the diagonals of the above matrix
45+
- kind: maven
46+
jre: 8
47+
os: windows-latest
48+
- kind: gradle
49+
jre: 17
50+
os: windows-latest
51+
# npm on linux only (crazy slow on windows)
52+
- kind: npm
53+
jre: 8
54+
os: ubuntu-latest
55+
runs-on: ${{ matrix.os }}
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v3
59+
- name: Install JDK ${{ matrix.distribution }} ${{ matrix.java_version }}
60+
uses: actions/setup-java@v3
61+
with:
62+
distribution: "temurin"
63+
java-version: ${{ matrix.jre }}
64+
cache: gradle
65+
- name: build (maven-only)
66+
if: matrix.kind == 'maven'
67+
run: ./gradlew :plugin-maven:build -x spotlessCheck --build-cache
68+
- name: build (everything-but-maven)
69+
if: matrix.kind == 'gradle'
70+
run: ./gradlew build -x spotlessCheck --build-cache -PSPOTLESS_EXCLUDE_MAVEN=true
71+
- name: test npm
72+
if: matrix.kind == 'npm'
73+
run: ./gradlew testNpm --build-cache
74+
- name: junit result
75+
uses: mikepenz/action-junit-report@v3
76+
if: always() # always run even if the previous step fails
77+
with:
78+
check_name: JUnit ${{ matrix.kind }} ${{ matrix.jre }} ${{ matrix.os }}
79+
report_paths: '*/build/test-results/*/TEST-*.xml'

0 commit comments

Comments
 (0)