forked from OpenVoxProject/openvox-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 983 Bytes
/
test.yml
File metadata and controls
43 lines (39 loc) · 983 Bytes
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
---
name: Pull Request Tests
on:
pull_request: {}
workflow_call: {}
permissions:
contents: read
jobs:
rake_checks:
name: Rake Checks
runs-on: ubuntu-24.04
steps:
# needs fetch-depth because the packaging dem reads old git tags
- name: Checkout current PR
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Ruby version 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Display Ruby environment
run: bundle env
- name: Run rake rubocop
run: bundle exec rake rubocop
- name: Validate code
run: bundle exec jekyll build
tests:
if: always()
needs:
- rake_checks
runs-on: ubuntu-24.04
name: Test suite
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}