Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,28 +0,0 @@
# CODEOWNERS lists which teams are largely responsible for areas of code in the repository
# see https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
# for further details

**/*.md @forem/oss
/app/assets/ @forem/frontend
/app/controllers/async_info_controller.rb @forem/sre
/app/javascript/ @forem/frontend
/app/services/search/ @forem/sre
/app/workers/ @forem/sre
/config/ @forem/sre
/config/locales
/db/ @forem/sre @forem/backend
/lib/data_update_scripts/ @forem/sre
/lib/sidekiq/ @forem/sre
/spec/rails_helper.rb @forem/sre @forem/backend
/spec/support/ @forem/sre
.buildkite/ @forem/systems @forem/sre
.travis.yml @forem/sre
Containerfile @forem/systems
docker-compose.yml @forem/systems
Dockerfile @forem/systems
Gemfile @forem/sre @forem/backend
Gemfile.lock @forem/sre @forem/backend
package.json @forem/frontend
podman-compose.yml @forem/systems
scripts/ @forem/systems
yarn.lock @forem/frontend
28 changes: 0 additions & 28 deletions .github/workflows/buildkite.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/issue.yml

This file was deleted.

85 changes: 85 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
db:
image: postgres:11
env:
POSTGRES_PASSWORD: password
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Set up timezone
run: |
sudo timedatectl set-timezone America/Mexico_City
- name: Install required apt packages
run: |
sudo apt-get -y install libpq-dev
- name: Bundle install
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12.19.0
- name: Find yarn cache location
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: JS package cache
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install packages
run: |
yarn install --pure-lockfile
- name: Webpack Assets compile
env:
RAILS_ENV: test
NODE_ENV: test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: |
bundle exec rails webpacker:compile
- name: Yarn test
run: |
yarn test
- name: Setup test database
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:password@localhost:5432/hackathon-on-rails_test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: |
bundle exec rails db:test:prepare
- name: Run tests
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:password@localhost:5432/hackathon-on-rails_test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: |
bundle exec rspec
23 changes: 0 additions & 23 deletions .github/workflows/pr.yml

This file was deleted.

Loading