Skip to content

Commit 7ebd6ce

Browse files
committed
docs: add example files for portal-ruby-* workflows
1 parent 9044063 commit 7ebd6ce

File tree

4 files changed

+48
-3
lines changed

4 files changed

+48
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ This repository provides a centralized collection of reusable GitHub Actions wor
5252
**Usage:** See [`examples/lb-ruby-lint.yml`](examples/lb-ruby-lint.yml)
5353
* `portal-ruby-lint.yml`
5454
Runs RuboCop and HAML linting for Rails applications. Reads Ruby version from `.ruby-version` file.
55-
**Usage:** See [`.github/workflows/portal-ruby-lint.yml`](.github/workflows/portal-ruby-lint.yml)
55+
**Usage:** See [`examples/portal-ruby-lint.yml`](examples/portal-ruby-lint.yml)
5656
* `portal-ruby-scan.yml`
5757
Scans Rails applications for security vulnerabilities using Brakeman. Reads Ruby version from `.ruby-version` file.
58-
**Usage:** See [`.github/workflows/portal-ruby-scan.yml`](.github/workflows/portal-ruby-scan.yml)
58+
**Usage:** See [`examples/portal-ruby-scan.yml`](examples/portal-ruby-scan.yml)
5959
* `portal-ruby-tests.yml`
6060
Runs Rails tests with MySQL and Redis services. Reads Ruby version from `.ruby-version` file. Requires OAuth and Devise secrets.
61-
**Usage:** See [`.github/workflows/portal-ruby-tests.yml`](.github/workflows/portal-ruby-tests.yml)
61+
**Usage:** See [`examples/portal-ruby-tests.yml`](examples/portal-ruby-tests.yml)
6262

6363

6464
### Security & Docker Workflows

examples/portal-ruby-lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: CI - Lint
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ master ]
7+
8+
jobs:
9+
lint:
10+
uses: mconf/mconf-ci-jobs/.github/workflows/portal-ruby-lint.yml@main
11+
# No inputs required - uses .ruby-version file from repository
12+
secrets: inherit

examples/portal-ruby-scan.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: CI - Scan
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ master ]
7+
8+
jobs:
9+
scan_ruby:
10+
uses: mconf/mconf-ci-jobs/.github/workflows/portal-ruby-scan.yml@main
11+
# No inputs required - uses .ruby-version file from repository
12+
secrets: inherit

examples/portal-ruby-tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI - Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ master ]
7+
8+
jobs:
9+
test:
10+
uses: mconf/mconf-ci-jobs/.github/workflows/portal-ruby-tests.yml@main
11+
# No inputs required - uses .ruby-version file from repository
12+
secrets: inherit
13+
# Required secrets:
14+
# DEVISE_PEPPER: Required for Devise authentication
15+
# DEVISE_SECRET_KEY: Required for Devise authentication
16+
# DEVISE_JWT_SECRET_KEY: Required for Devise JWT authentication
17+
# Optional secrets:
18+
# GOOGLE_OAUTH_KEY: For Google OAuth authentication
19+
# GOOGLE_OAUTH_SECRET: For Google OAuth authentication
20+
# FACEBOOK_OAUTH_KEY: For Facebook OAuth authentication
21+
# FACEBOOK_OAUTH_SECRET: For Facebook OAuth authentication

0 commit comments

Comments
 (0)