Remove code execute controller #1541
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
paths-ignore: | |
- "**.md" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run Ruby linting | |
run: bin/standardrb --no-fix | |
test-import: | |
runs-on: ubuntu-latest | |
services: | |
search: | |
image: opensearchproject/opensearch:2.11.0 | |
ports: | |
- 9200:9200 | |
env: | |
"discovery.type": "single-node" | |
"plugins.security.disabled": "true" | |
options: >- | |
--health-cmd "curl --silent --fail http://localhost:9200/_cluster/health || exit 1" | |
--health-start-period 30s | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Test Importing Ruby Documentation | |
env: | |
SEARCH_URL: "http://localhost:9200" | |
run: bin/rails "import:ruby[3.4]" | |
test: | |
runs-on: ubuntu-latest | |
services: | |
search: | |
image: opensearchproject/opensearch:2.11.0 | |
ports: | |
- 9200:9200 | |
env: | |
"discovery.type": "single-node" | |
"plugins.security.disabled": "true" | |
options: >- | |
--health-cmd "curl --silent --fail http://localhost:9200/_cluster/health || exit 1" | |
--health-start-period 30s | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run Tests | |
run: bin/rails test | |
test-system: | |
runs-on: ubuntu-latest | |
services: | |
search: | |
image: opensearchproject/opensearch:2.11.0 | |
ports: | |
- 9200:9200 | |
env: | |
"discovery.type": "single-node" | |
"plugins.security.disabled": "true" | |
options: >- | |
--health-cmd "curl --silent --fail http://localhost:9200/_cluster/health || exit 1" | |
--health-start-period 30s | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run Tests | |
run: bin/rails test:system |