Skip to content

Commit

Permalink
Merge pull request #389 from cre-ne-jp/change-test-actions
Browse files Browse the repository at this point in the history
GitHub Actions で使用する action を更新
  • Loading branch information
koi-chan authored Nov 21, 2024
2 parents 3bc1cf0 + 58ec7c8 commit f9f7b64
Show file tree
Hide file tree
Showing 7 changed files with 1,261 additions and 1,250 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test:
name: "Ruby 3.2: test and coverage measurement"
name: "Ruby 3.3: test and coverage measurement"
strategy:
fail-fast: false
runs-on: ubuntu-latest
Expand All @@ -32,21 +32,25 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
ruby-version: '3.3'

# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
# 参考: https://igarashikuniaki.net/diary/20200210.html
- name: Install JavaScript packages
- name: 'Enable corepack'
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 'lts/hydrogen'
cache: 'yarn'
- name: Compile JavaScripts (webpack)
run: |
yarn install
NODE_ENV=production bin/yarn webpack
- name: Setup database
run: |
cp config/database.yml.github_actions config/database.yml
bin/rails db:setup
- name: Compile JavaScripts (webpack)
run: NODE_ENV=production bin/yarn webpack
- uses: paambaati/[email protected]
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: 74e589ede57e23f089cbbd2eee75be23a93b5ace7b5cfce58213cd3f21447147
with:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
fail-fast: false
matrix:
ruby:
- '3.1'
- '3.2'
- '3.3'
runs-on: ubuntu-latest
Expand All @@ -24,7 +23,7 @@ jobs:
TZ: Asia/Tokyo
services:
db:
image: koichan779/mroonga:14.04
image: koichan779/mroonga:14.10-1
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
ports:
Expand All @@ -41,15 +40,19 @@ jobs:

# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
# 参考: https://igarashikuniaki.net/diary/20200210.html
- name: Install JavaScript packages
- name: 'Enable corepack'
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 'lts/hydrogen'
cache: 'yarn'
- name: Compile JavaScripts (webpack)
run: |
yarn install
NODE_ENV=production bin/yarn webpack
- name: Setup database
run: |
cp config/database.yml.github_actions config/database.yml
bin/rails db:setup
- name: Compile JavaScripts (webpack)
run: NODE_ENV=production bin/yarn webpack
- name: Run tests
run: bin/rails test
8 changes: 4 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nodeLinker: node-modules
compressionLevel: mixed

enableGlobalCache: false

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
nodeLinker: node-modules
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ IRC ボットを常駐させることでチャットログをチャンネル単
## 動作環境

* Linux または OSX
* Ruby 3.0.0 以降
* MySQL または MariaDB
* Ruby 3.2.0 以降
* NodeJS 18.x 以降
* MySQL または MariaDB と Mroonga プラグイン
* Redis

## インストール

[MySQL](https://www-jp.mysql.com/) もしくは [MariaDB](https://mariadb.org/) と、[Redis](https://redis.io/) をインストールしていない場合はインストールしてください。
[MariaDB](https://mariadb.org/) もしくは [MySQL](https://www-jp.mysql.com/) と、[Redis](https://redis.io/) をインストールしていない場合はインストールしてください。

全文検索機能を動作させるため、[Groonga](http://groonga.org/ja/) および [Mroonga](http://mroonga.org/ja/) のインストールが必要です。Mroonga 公式サイトより[インストール方法](http://mroonga.org/ja/docs/install.html)を参照してインストールを行ってください。

Expand All @@ -33,6 +34,7 @@ gem install bundler

```bash
bundle install
corepack enable
yarn install
```

Expand All @@ -43,7 +45,7 @@ yarn install
* gcc-c++
* libicu-devel
* zlib-devel
* mariadb-devel
* mariadb-devel (もしくは mysql-devel)

具体的なインストール手順は [インストール](doc/install.md) を参照してください。

Expand Down
1 change: 1 addition & 0 deletions doc/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ cd log-archiver

```bash
bundle install --deployment --path vendor/bundle
corepack enable
yarn install
```

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"scripts": {
"dev": "webpack --progress --color --mode=development",
"server": "webpack serve --color --mode=development"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit f9f7b64

Please sign in to comment.