-
Notifications
You must be signed in to change notification settings - Fork 179
83 lines (80 loc) · 2.58 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: CI
on:
push:
branches:
- 2.x
tags:
- '*'
jobs:
deploy_spek2:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
arguments: spek-dsl:publish spek-runtime:publish spek-runner-junit5:publish --stacktrace -PexcludeIdePlugins
- os: windows-latest
arguments: spek-dsl:publish spek-runtime:publish --stacktrace -PexcludeIdePlugins
- os: macos-latest
arguments: spek-dsl:publish spek-runtime:publish --stacktrace -PexcludeIdePlugins
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1000
- run: git fetch --depth=1000 origin +refs/tags/*:refs/tags/*
- name: Checkout submodules
uses: snickerbockers/submodules-init@v4
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: ${{ matrix.arguments }}
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
OSSRH_SIGNING_KEY: ${{ secrets.OSSRH_SIGNING_KEY }}
OSSRH_SIGNING_PASSWORD: ${{ secrets.OSSRH_SIGNING_PASSWORD }}
deploy_ij_plugin:
strategy:
fail-fast: false
matrix:
ij_sdk: [IJ193, IJ201, IJ202, IJ203, IJ211, IJ212]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1000
- run: git fetch --depth=1000 origin +refs/tags/*:refs/tags/*
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: spek-ide-plugin-intellij-idea:publishPlugin -Pij.version=${{ matrix.ij_sdk }} --stacktrace
env:
HUB_API_TOKEN: ${{ secrets.HUB_API_TOKEN }}
deploy_as_plugin:
strategy:
fail-fast: false
matrix:
as_sdk: [AS36, AS40, AS41]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1000
- run: git fetch --depth=1000 origin +refs/tags/*:refs/tags/*
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: spek-ide-plugin-android-studio:publishPlugin -Pas.version=${{ matrix.as_sdk }} --stacktrace
env:
HUB_API_TOKEN: ${{ secrets.HUB_API_TOKEN }}