-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/obfuscation
- Loading branch information
Showing
49 changed files
with
43,765 additions
and
7 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
name: Verify | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
linters: | ||
name: Linters | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- run: | | ||
git fetch --no-tags --unshallow --prune origin +refs/heads/*:refs/remotes/origin/* | ||
- name: Setup Ruby and install gems | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Run linters | ||
run: | | ||
bundle exec pronto run -c origin/master --exit-code | ||
# bundle exec stylelint | ||
# bundle exec prettier | ||
# bundle exec eslint --fix $(git diff --name-only HEAD | xargs) | ||
env: | ||
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }} | ||
PRONTO_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# security_checks: | ||
# name: Security checks | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v2 | ||
# - run: | | ||
# git fetch --no-tags --prune origin +refs/heads/*:refs/remotes/origin/* | ||
|
||
# - name: Setup Ruby and install gems | ||
# uses: ruby/setup-ruby@v1 | ||
# with: | ||
# bundler-cache: true | ||
|
||
# - name: Run security checks | ||
# run: | | ||
# bundle exec bundler-audit --update | ||
# bundle exec brakeman -q -w2 | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
env: | ||
MYSQL_HOST: 127.0.0.1 | ||
MYSQL_USER: root | ||
MYSQL_PASSWORD: root | ||
MYSQL_DATABASE: ssid_test | ||
MYSQL_ROOT_PASSWORD: root | ||
ports: | ||
- "3306:3306" | ||
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Ruby and install gems | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
# - name: Setup Node | ||
# uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: 16 | ||
# cache: yarn | ||
|
||
- name: Install packages | ||
run: | | ||
yarn install --pure-lockfile | ||
- name: Setup test database | ||
env: | ||
RAILS_ENV: test | ||
DATABASE_PORT: 3306 | ||
DB_HOST: 127.0.0.1 | ||
DB_CONNECTION: mysql | ||
DB_DATABASE: ssid_test | ||
DB_USER: root | ||
DB_PASSWORD: root | ||
run: | | ||
sudo /etc/init.d/mysql start | ||
mysql -e 'CREATE DATABASE ssid_test;' -u root -proot | ||
bundle exec rails db:create | ||
bundle exec rails db:schema:load | ||
- name: Install chrome | ||
uses: browser-actions/setup-chrome@v1 | ||
|
||
- name: Setup chromedriver | ||
uses: nanasess/setup-chromedriver@v2 | ||
|
||
- name: Run tests | ||
run: bundle exec rspec | ||
|
||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: "./coverage/lcov.info" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
all: | ||
exclude: | ||
- 'spec/**/*' | ||
# exclude files for single runner | ||
eslint: | ||
exclude: | ||
- 'app/assets/**/*' | ||
- 'coverage/**/*' | ||
github: | ||
slug: prontolabs/pronto | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
api_endpoint: https://api.github.com/ | ||
web_endpoint: https://github.com/ | ||
max_warnings: 150 | ||
warnings_per_review: 30 | ||
verbose: false | ||
runners: [rubocop, eslint] # only listed runners will be executed | ||
skip_runners: [reek] # all, except listed runners will be executed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--require spec_helper |
Oops, something went wrong.