Skip to content

Commit

Permalink
Merge pull request #140 from koedame/release/v0.6.0
Browse files Browse the repository at this point in the history
Release/v0.6.0
  • Loading branch information
unchidev authored Dec 28, 2024
2 parents 1d0f507 + 9d5001c commit 3431a27
Show file tree
Hide file tree
Showing 14 changed files with 792 additions and 255 deletions.
52 changes: 0 additions & 52 deletions .devcontainer/devcontainer.json

This file was deleted.

38 changes: 0 additions & 38 deletions .devcontainer/docker-compose.yml

This file was deleted.

44 changes: 22 additions & 22 deletions .github/workflows/coding-style-check.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Coding Style Check
name: coding-style-check

on:
pull_request:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
coding-style-check:
standardrb:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Restore Cache
uses: actions/cache@v4
id: bundle_cache_id
env:
cache-name: cache-bundle
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: ./vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-gem-${{ env.cache-name }}-
${{ runner.os }}-gem-
${{ runner.os }}-
${{ runner.os }}-buildx-
- name: Install Packages
shell: bash
- name: Install dependencies
run: |
docker compose -f docker-compose.ci.yml run --rm app bundle install --jobs=16
docker compose -f docker-compose.ci.yml run --rm app bundle clean --force
docker compose -f compose.ci.yml run --rm app bundle install --jobs=16
docker compose -f compose.ci.yml run --rm app bundle clean --force
- name: Run Linter
run: docker compose -f docker-compose.ci.yml run --rm app bundle exec standardrb
- name: Run standardrb
run: docker compose -f compose.ci.yml run --rm app bundle exec standardrb
58 changes: 29 additions & 29 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
name: Run Test
name: test

on:
pull_request:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
run-test:
test:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Restore Cache
uses: actions/cache@v4
id: bundle_cache_id
env:
cache-name: cache-bundle
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: ./vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-gem-${{ env.cache-name }}-
${{ runner.os }}-gem-
${{ runner.os }}-
${{ runner.os }}-buildx-
- name: Up Docker Container
run: docker compose -f docker-compose.ci.yml up -d
- name: Start containers
run: docker compose -f compose.ci.yml up -d

- name: Install Packages
shell: bash
- name: Install dependencies
run: |
docker compose -f docker-compose.ci.yml exec app bundle install --jobs=16
docker compose -f docker-compose.ci.yml exec app bundle clean --force
docker compose -f compose.ci.yml exec app bundle install --jobs=16
docker compose -f compose.ci.yml exec app bundle clean --force
- name: Setup DB
- name: Setup database
run: |
docker compose -f docker-compose.ci.yml exec app sh -c "cd ./spec/dummy && bundle exec rails db:setup"
docker compose -f compose.ci.yml exec app sh -c "cd ./spec/dummy && bundle exec rails db:setup"
- name: Run Test
run: docker compose -f docker-compose.ci.yml exec app bundle exec rspec
- name: Run tests
run: docker compose -f compose.ci.yml exec app bundle exec rspec

- name: Down Docker Container
run: docker compose -f docker-compose.ci.yml down
- name: Stop containers
run: docker compose -f compose.ci.yml down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ gemspec
gem "bump"
gem "rake"
gem "solargraph"
gem "nio4r", "~> 2.7.0"
Loading

0 comments on commit 3431a27

Please sign in to comment.