-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1022 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: 幻水音楽考 on Spotify
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- '**'
tags-ignore:
- 'v*.*.*'
env:
TZ: Asia/Tokyo
RAILS_ENV: test
jobs:
form:
runs-on: ubuntu-22.04
name: 幻水音楽考
steps:
- name: $ git clone する
uses: actions/checkout@v4
- name: Ruby をセットアップする
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true
- name: RuboCop を実行する
run: |
bundle exec rubocop
- name: データベースをセットアップする
run: |
bundle exec rails db:create
bundle exec rails db:migrate
- name: RSpec を実行する
run: |
bundle exec rspec
- name: 最終CSVのエクスポートタスクを実行する
run: |
bundle exec rails export_to_dist_csv_files:all