-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (59 loc) · 1.46 KB
/
quality.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
name: Quality Checks
run-name: ${{ github.workflow }} of ${{ github.sha }} on ${{ github.ref_name }}
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
concurrency:
group: "${{ github.workflow }} at ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- id: checkout
name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: sonarcloud
name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- id: shellcheck
name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
setup-and-test:
name: Setup workstation and test
strategy:
fail-fast: true
matrix:
os: [macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- id: checkout
name: Checkout code
uses: actions/checkout@v4
- id: setup
name: Setup workstation
run: ./setup
- id: test
name: Test setup
run: ./test