-
-
Notifications
You must be signed in to change notification settings - Fork 532
34 lines (32 loc) · 936 Bytes
/
generator-tests.yml
File metadata and controls
34 lines (32 loc) · 936 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
name: GeneratorTests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-generator-templates:
name: Check Generator Templates
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Set up Ruby
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64
with:
ruby-version: "3.3"
bundler-cache: true
- name: Verify templates
run: bundle exec ./bin/generate --verify
test-generator:
name: Test Generator
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Set up Ruby
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64
with:
ruby-version: "3.3"
bundler-cache: true
- name: Run tests
run: bundle exec rake test:generator