-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (39 loc) · 1.04 KB
/
CI.yaml
File metadata and controls
53 lines (39 loc) · 1.04 KB
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
# CI.yaml --- Check OpenVox module
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
checks:
name: OpenVox ${{ matrix.openvox_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
openvox_version: [8]
container:
image: ghcr.io/voxpupuli/voxbox:${{ matrix.openvox_version }}
volumes:
- ${{ github.workspace }}:/repo
- /etc/gitconfig:/etc/gitconfig
steps:
- name: Clone repository
uses: actions/checkout@v6
- name: Syntax
run: rake -f /Rakefile syntax
- name: Check
run: rake -f /Rakefile check
- name: Lint code
run: rake -f /Rakefile lint
- name: Lint YAML
if: ${{ hashFiles('data') != '' }}
run: yamllint data/
- name: Lint Metadata
run: rake -f /Rakefile metadata_lint
- name: Rubocop
run: rake -f /Rakefile rubocop
- name: Unit Tests
run: rake -f /Rakefile spec