chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
18
worker-toolkit-stocks-in-the-future/repo/.github/ISSUE_TEMPLATE.md
vendored
Normal file
18
worker-toolkit-stocks-in-the-future/repo/.github/ISSUE_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
# Summary
|
||||
|
||||
Describe an overview of the problem. Provide a general description of the problem it's solving or why this issue should be addressed.
|
||||
|
||||
## Things out of Scope
|
||||
> **OPTIONAL** List here work that is related and shouldn't be done as part of this issue. This can be work we've decided to never do, or it can be work we've decided to put in a separate issue.
|
||||
|
||||
## Things to Consider
|
||||
> **OPTIONAL** If you happen to know that this particular issue will touch other parts of the application in non-obvious ways (maybe there are side effects, or there are other parts of the application that depend on the thing that needs to be changed), you can list them out here. This is an opportunity to share *domain knowledge* that you might have about the problemset.
|
||||
|
||||
# Criteria for Completion
|
||||
> This should be a bulleted list of items that, if satisfied, would result in an acceptably complete Pull Request. Be as specific as you need to be. For example:
|
||||
|
||||
- [ ] When a user clicks on {this} it should now do {that}
|
||||
- [ ] This feature should only be available to admins
|
||||
- [ ] Add a test proving that it works
|
||||
|
||||
19
worker-toolkit-stocks-in-the-future/repo/.github/ISSUE_TEMPLATE/issue_template.yml
vendored
Normal file
19
worker-toolkit-stocks-in-the-future/repo/.github/ISSUE_TEMPLATE/issue_template.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Issue Template
|
||||
description: Report an issue or request a feature
|
||||
title: "Issue: "
|
||||
labels: ["needs-triage"]
|
||||
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: What's the issue?
|
||||
placeholder: Describe the problem or feature you'd like
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional details
|
||||
placeholder: Steps to reproduce (for bugs) or more context (for features)
|
||||
validations:
|
||||
required: true
|
||||
11
worker-toolkit-stocks-in-the-future/repo/.github/dependabot.yml
vendored
Normal file
11
worker-toolkit-stocks-in-the-future/repo/.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "bundler" # See documentation for possible values
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
50
worker-toolkit-stocks-in-the-future/repo/.github/workflows/ci.yml
vendored
Normal file
50
worker-toolkit-stocks-in-the-future/repo/.github/workflows/ci.yml
vendored
Normal 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
|
||||
75
worker-toolkit-stocks-in-the-future/repo/.github/workflows/deploy-staging.yml
vendored
Normal file
75
worker-toolkit-stocks-in-the-future/repo/.github/workflows/deploy-staging.yml
vendored
Normal 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
|
||||
29
worker-toolkit-stocks-in-the-future/repo/.github/workflows/lint.yml
vendored
Normal file
29
worker-toolkit-stocks-in-the-future/repo/.github/workflows/lint.yml
vendored
Normal 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
|
||||
28
worker-toolkit-stocks-in-the-future/repo/.github/workflows/unassign-stale-issues.yml
vendored
Normal file
28
worker-toolkit-stocks-in-the-future/repo/.github/workflows/unassign-stale-issues.yml
vendored
Normal 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.'
|
||||
Reference in New Issue
Block a user