chore: init commit

in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
2026-08-11 14:44:09 -04:00
parent 0012380fd3
commit 392781f7aa
781 changed files with 65944 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
---
name: "Continuous Integration"
on:
push:
branches: ['main']
pull_request:
types: ['opened', 'reopened', 'synchronize', 'unlocked']
jobs:
rails-test:
name: Rails Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
ports:
- "5432:5432"
env:
POSTGRES_DB: sif
POSTGRES_USER: sif
POSTGRES_PASSWORD: password
redis:
image: redis:7.0
env:
RAILS_ENV: test
DATABASE_URL: "postgres://sif:password@localhost:5432/sif"
REDIS_URL: "redis://localhost:6379/1"
BROWSERSLIST_IGNORE_OLD_DATA: true
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4.4'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Set up database
run: bin/rails db:setup
- name: Run tests
run: bin/rails test
- name: Run system tests
run: bin/rails test:system

View File

@@ -0,0 +1,75 @@
---
name: "Deploy to Staging"
on:
push:
branches: ["main"]
# Prevent concurrent deploys - queue rather than cancel
concurrency:
group: deploy-staging
cancel-in-progress: false
jobs:
test:
name: Rails Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
ports:
- "5432:5432"
env:
POSTGRES_DB: sif
POSTGRES_USER: sif
POSTGRES_PASSWORD: password
env:
RAILS_ENV: test
DATABASE_URL: "postgres://sif:password@localhost:5432/sif"
BROWSERSLIST_IGNORE_OLD_DATA: true
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4.4'
bundler-cache: true
- name: Set up database
run: bin/rails db:setup
- name: Run tests
run: bin/rails test
deploy:
name: Deploy to Staging
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4.4'
bundler-cache: true
- name: Set up SSH agent
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.STAGING_SSH_PRIVATE_KEY }}
- name: Add staging server to known_hosts
run: ssh-keyscan -H ${{ secrets.STAGING_SERVER_IP }} >> ~/.ssh/known_hosts
- name: Deploy to staging
env:
STAGING_SERVER_IP: ${{ secrets.STAGING_SERVER_IP }}
run: bundle exec cap staging deploy

View File

@@ -0,0 +1,29 @@
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.4
bundler-cache: true # runs bundle install and caches gems
- name: Install dependencies
run: bundle install
- name: Run Lint
run: bin/lint

View File

@@ -0,0 +1,28 @@
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * *'
jobs:
unassign_issues:
runs-on: ubuntu-latest
name: Unassign issues
permissions:
issues: write
pull-requests: write
steps:
- name: Mark issues as stale
uses: actions/stale@v8
with:
include-only-assigned: true
stale-issue-message: 'This issue is marked as stale due to no activity within 20 days. If no further activity is detected within 7 days, it will be unassigned.'
days-before-stale: 20
days-before-close: -1
days-before-pr-close: -1
- name: Unassign stale issues
uses: boundfoxstudios/action-unassign-contributor-after-days-of-inactivity@main
with:
last-activity: 7
labels: 'Stale'
labels-to-remove: 'Stale'
message: 'Automatically unassigned after 7 days of inactivity.'