Skip to content

Commit 7b73c1c

Browse files
authored
Create empty committ.yml
Signed-off-by: Theomegas1 <[email protected]>
1 parent 2709298 commit 7b73c1c

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

.github/workflows/empty committ.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
- name: elmah.io Create Deployment Action
2+
# You may pin to the exact commit or the version.
3+
# uses: elmahio/github-create-deployment-action@132611db9161ecebb1b07db6510d4ea5e0d2d415
4+
uses: elmahio/github-create-deployment-action@v1
5+
with:
6+
# An API key with permission to create deployments.
7+
apiKey:
8+
# The version number of this deployment. The value of version can be a SemVer compliant string or any other syntax that you are using as your version numbering scheme.
9+
version:
10+
# Optional description of this deployment. Can be markdown or clear text.
11+
description: # optional
12+
# The name of the person responsible for creating this deployment. This can be the name taken from your deployment server.
13+
userName: # optional
14+
# The email of the person responsible for creating this deployment. This can be the email taken from your deployment server.
15+
userEmail: # optional
16+
# As default, deployments are attached all logs of the organization. If you want a deployment to attach to a single log only, set this to the ID of that log.
17+
logId: # optional
18+
# This workflow uses actions that are not certified by GitHub. They are
19+
# provided by a third-party and are governed by separate terms of service,
20+
# privacy policy, and support documentation.
21+
#
22+
# This workflow will install a prebuilt Ruby version, install dependencies, and
23+
# run tests and linters.
24+
name: "Ruby on Rails CI"
25+
on:
26+
push:
27+
branches: [ "main" ]
28+
pull_request:
29+
branches: [ "main" ]
30+
jobs:
31+
test:
32+
runs-on: ubuntu-latest
33+
services:
34+
postgres:
35+
image: postgres:11-alpine
36+
ports:
37+
- "5432:5432"
38+
env:
39+
POSTGRES_DB: rails_test
40+
POSTGRES_USER: rails
41+
POSTGRES_PASSWORD: password
42+
env:
43+
RAILS_ENV: test
44+
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v4
48+
# Add or replace dependency steps here
49+
- name: Install Ruby and gems
50+
uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1
51+
with:
52+
bundler-cache: true
53+
# Add or replace database setup steps here
54+
- name: Set up database schema
55+
run: bin/rails db:schema:load
56+
# Add or replace test runners here
57+
- name: Run tests
58+
run: bin/rake
59+
60+
lint:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout code
64+
uses: actions/checkout@v4
65+
- name: Install Ruby and gems
66+
uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1
67+
with:
68+
bundler-cache: true
69+
- name: Generate binstubs
70+
run: bundle binstubs bundler-audit brakeman rubocop
71+
# Add or replace any other lints here
72+
- name: Security audit dependencies
73+
run: bin/bundler-audit --update
74+
- name: Security audit application code
75+
run: bin/brakeman -q -w2
76+
- name: Lint Ruby files
77+
run: bin/rubocop --parallel

0 commit comments

Comments
 (0)