-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.01 KB
/
forms-cli.yml
File metadata and controls
34 lines (34 loc) · 1.01 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
name: "Test Forms Cli"
on:
push:
branches: [forms_cli]
paths:
- "support/forms-cli/**"
- ".github/workflows/forms-cli.yml"
pull_request:
branches: [main]
paths:
- "support/forms-cli/**"
merge_group:
types: [checks_requested]
jobs:
build_and_test:
runs-on: ubuntu-24.04-arm
defaults:
run:
working-directory: support/forms-cli
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Determine Ruby version
id: determine-ruby-version
run: |
echo "RUBY_VERSION=$(cat ../../.ruby-version)" >> "$GITHUB_OUTPUT"
- name: Install Ruby and gems
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
with:
bundler-cache: true
ruby-version: ${{steps.determine-ruby-version.outputs.RUBY_VERSION}}
working-directory: support/forms-cli
- name: Run forms CLI tests
run: bundle exec rspec