-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (39 loc) · 1.21 KB
/
multi-platform-ci.yml
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
name: Multi Platform CI
on:
push:
branches-ignore:
- main
- wip*
jobs:
ci:
name: run tests, style verification, measure code coverage and publish to nexus staging repository
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, windows-2022, macos-13]
env:
OS: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Java JDK setup
uses: actions/setup-java@v3
with:
java-version: 8
distribution: "zulu"
- name: Setup Ubuntu OS packages
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libmediainfo0v5
- name: Run Tests
run: ./gradlew clean build check test coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# Publish to the staging repository only once, from the Linux Runner
- name: Publish to Staging repository
if: runner.os == 'Linux'
run: ./gradlew publishToSonatype
env:
NEXUS_TARGET: SNAPSHOT
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}