-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.1.0' into main
- Loading branch information
Showing
134 changed files
with
3,298 additions
and
525 deletions.
There are no files selected for viewing
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,44 @@ | ||
--- | ||
name: Hata raporu | ||
about: Tespit edilen hataları ve beklenenin dışında çalışan özellikleri bildir | ||
--- | ||
|
||
#### Hatayı açıklayın | ||
|
||
<!-- | ||
Problemi tek bir paragrafla açıklayın | ||
--> | ||
|
||
#### Beklenen davranış | ||
|
||
<!-- | ||
Beklenen davranışı kısa şekilde açıklayın | ||
--> | ||
|
||
#### Mevcut davranış | ||
|
||
<!-- | ||
Mevcut davranışı kısa şekilde açıklayın. Gereğinden uzun hata çıktılarını lütfen Gist olarak paylaşın | ||
--> | ||
|
||
#### Ekran görüntüleri | ||
|
||
<!-- | ||
Varsa, hatayı görmeyi kolaylaştırılacak ekran görüntüleri | ||
--> | ||
|
||
#### Muhtemel çözüm | ||
|
||
<!-- | ||
Eğer bir çözüm öneriniz varsa tek bir paragrafla açıklayın. Gereğinden fazla uzun kod bloklarını lütfen Gist olarak paylaşın | ||
--> | ||
|
||
#### Hatayı tekrarlamak için takip edilmesi gereken adımlar | ||
|
||
<!-- | ||
Problemi yeniden üretmek için gerekli adımları aşağıda belirtin | ||
(1. X adresinde bulunan Y sayfasına git) | ||
(2. Z butonuna tıkla) | ||
(3. Sayfayı en alta kaydır) | ||
(4. Görünmesi gereken metin K iken L görünüyor) | ||
--> |
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,22 @@ | ||
--- | ||
name: Tasarım önerisi | ||
about: Uygulamanın varolan UI/UX'i ile ilgili değişiklik önerisi. Varolan sayfalardaki sorunlar için 'hata raporu', varolmayan sayfalar için 'özellik önerisi' template'ini kullanın | ||
--- | ||
|
||
#### Bu tasarım önerisi bir problemle mi ilgili? Lütfen detaylıca açıklayınız | ||
|
||
<!-- | ||
Tasarım önerinizi detaylıca açıklayınız. Mevcut tasarımdaki sorun ne, bu tasarıma neden ihtiyaç var, tasarım neleri iyileştirecek gibi sorunların tanımı açıkça yapılmalıdır | ||
--> | ||
|
||
#### Sizin çözümünüz | ||
|
||
<!-- | ||
Kısa ve net bir şekilde konuyla ilişkili olarak sizin önerileriniz neler, sizin öneriniz kabul edilirse neler olacak, uygulamada neler iyileşecek açıklayınız | ||
--> | ||
|
||
#### Ekran görüntüleri | ||
|
||
<!-- | ||
Mevcut tasarım ve sizin önerinizi karşılaştırabileceğimiz ekran görüntüleri | ||
--> |
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,10 @@ | ||
--- | ||
name: Özellik talebi | ||
about: Projeye yeni bir özellik talebinde bulun | ||
--- | ||
|
||
#### Açıklama | ||
|
||
<!-- | ||
Eklenmesini istediğiniz özelliği tek bir paragrafla açıklayın | ||
--> |
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,10 @@ | ||
--- | ||
name: Diğer | ||
about: Açacağınız kayıt diğer şablonlardan birine uymuyorsa bu şablonu kullanın | ||
--- | ||
|
||
#### Açıklama | ||
|
||
<!-- | ||
Kayıt ile ilgili açıklama yapın | ||
--> |
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,41 @@ | ||
#### Bu PR'in yaptığı işi/değişikliği ve bu işi/değişikliği neden yaptığını açıklayın | ||
|
||
<!-- | ||
- Kısa ve net bir şekilde bu PR'e neden ihtiyaç var? | ||
- Ne iş/değişiklik yapıyor? | ||
--> | ||
|
||
#### İlgili/kapatılacak iş kaydı | ||
|
||
<!-- | ||
- PR merge edildiğinde hangi iş kayıtları kapatılacak ise `Closes`, `Fixes` gibi anahtar kelimeler ile birlikte ID numaralarını listele | ||
- Kapatılmayan ancak referans verilecek iş kayıtları için `References` anahtar kelimesini kullan | ||
Örnekler: | ||
- Closes #ID | ||
- Fixes #ID | ||
- References #ID | ||
--> | ||
|
||
#### Veritabanına etkileri | ||
|
||
<!-- | ||
PR merge edildiğinde veritabanını etkiliyorsa bu etkileri açıklayın | ||
--> | ||
|
||
#### Sistem etkileri | ||
|
||
<!-- | ||
PR merge edildiğinde sunucular üzerinde herhangi bir düzenleme gerekecek mi? | ||
Örnek: yeni paket kurulması, buildpack eklenmesi | ||
--> | ||
|
||
#### Ek içerik | ||
|
||
<!-- | ||
Aşağıdaki gibi ek içerikler gerek görülürse eklenebilir | ||
- Kaynaklar | ||
- Dış bağlantılar | ||
- Ekran görüntüleri | ||
- Örnek çözümler | ||
--> |
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,23 @@ | ||
name: brakeman | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
brakeman: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ruby version specified in `.ruby-version` | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Run brakeman | ||
run: bundle exec brakeman |
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,107 @@ | ||
name: rspec | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
rspec: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:alpine | ||
env: | ||
POSTGRES_USER: pinmapper | ||
POSTGRES_PASSWORD: pinmapper | ||
POSTGRES_DB: pinmapper_test | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
redis: | ||
image: redis:alpine | ||
ports: ["6379:6379"] | ||
options: --entrypoint redis-server | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ruby version specified in `.ruby-version` | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- name: Install required system packages | ||
run: sudo apt-get update -y && sudo apt-get install openssh-client rsync libpq-dev cmake -y | ||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 15.x | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- name: Cache yarn cache | ||
uses: actions/cache@v2 | ||
id: cache-yarn-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.node-version }}-nodemodules- | ||
- name: Install yarn | ||
run: yarn install | ||
if: | | ||
steps.cache-yarn-cache.outputs.cache-hit != 'true' || | ||
steps.cache-node-modules.outputs.cache-hit != 'true' | ||
- name: Create database | ||
env: | ||
DATABASE_URL: postgres://pinmapper:pinmapper@localhost:5432/pinmapper_test | ||
REDIS_URL: redis://localhost:6379/0 | ||
RAILS_ENV: test | ||
RAILS_MASTER_KEY: ${{ secrets.RAILS_TEST_KEY }} | ||
run: bundle exec rails db:prepare | ||
- name: Run specs without system | ||
env: | ||
DATABASE_URL: postgres://pinmapper:pinmapper@localhost:5432/pinmapper_test | ||
REDIS_URL: redis://localhost:6379/0 | ||
RAILS_ENV: test | ||
RAILS_MASTER_KEY: ${{ secrets.RAILS_TEST_KEY }} | ||
run: bundle exec rspec --exclude-pattern "**/system/*_spec.rb" | ||
- name: Install ChromeDriver | ||
run: | | ||
CHROME_VERSION=$(google-chrome --version | cut -f 3 -d ' ' | cut -d '.' -f 1) \ | ||
&& CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}) \ | ||
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \ | ||
&& cd /tmp \ | ||
&& unzip chromedriver_linux64.zip \ | ||
&& rm -rf chromedriver_linux64.zip \ | ||
&& sudo mv chromedriver /usr/local/bin/chromedriver \ | ||
&& sudo chmod +x /usr/local/bin/chromedriver \ | ||
&& chromedriver --version | ||
- name: Run only system specs | ||
env: | ||
DATABASE_URL: postgres://pinmapper:pinmapper@localhost:5432/pinmapper_test | ||
REDIS_URL: redis://localhost:6379/0 | ||
RAILS_ENV: test | ||
RAILS_MASTER_KEY: ${{ secrets.RAILS_TEST_KEY }} | ||
HEADLESS: true | ||
run: bundle exec rspec spec/system | ||
- name: Upload failure screenshots | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: Failure screenshots | ||
path: /home/runner/work/pinmapper/pinmapper/tmp/screenshots |
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,23 @@ | ||
name: rubocop | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
rubocop: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ruby version specified in `.ruby-version` | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Lint | ||
run: bundle exec rubocop |
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
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
Oops, something went wrong.