generated from tegonal/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (65 loc) · 2.16 KB
/
quality-assurance.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# __ __
# / /____ ___ ____ ___ ___ _/ / This file is provided to you by https://github.com/tegonal/scala-commons
# / __/ -_) _ `/ _ \/ _ \/ _ `/ / Copyright 2024 Tegonal Genossenschaft <[email protected]>
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
# /___/ Please report bugs and contribute back your improvements
#
# Version: v0.1.0-SNAPSHOT
###################################
name: Quality Assurance
on: [ push, pull_request ]
jobs:
before_pr:
name: before-pr.sh
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install shellcheck
run: ./lib/tegonal-scripts/src/ci/install-shellcheck.sh
- name: before-pr.sh
run: ./scripts/before-pr.sh
matrix_prep:
name: Matrix Preparation Scala
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- id: set-matrix
run: |
node .github/workflows/matrix.js
qa_scala:
needs: matrix_prep
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix: ${{fromJson(needs.matrix_prep.outputs.matrix)}}
name: '${{ matrix.name }}'
env:
JAVA_VERSION: ${{ matrix.java_version }}
steps:
- uses: actions/checkout@v4
- name: "Set up JDK ${{ matrix.java_version }}"
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.java_distribution }}
java-version: ${{ matrix.java_version }}
cache: 'sbt'
- name: "install sbt"
if: ${{ matrix.os == 'macos-latest'}}
run: brew install sbt
- name: "sbt test using JDK ${{ matrix.java_version }}"
run: sbt test
- name: "sbt publishLocal using JDK ${{ matrix.java_version }}"
run: sbt publishLocal
todo_checker:
name: check for TODOs
runs-on: ubuntu-latest
steps:
- name: check for TODOs
uses: tegonal/[email protected]
with:
commands: todo-checker