-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.16 KB
/
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
44
45
46
name: ci
on:
push:
jobs:
build1:
runs-on: ubuntu-latest
timeout-minutes: 3
env:
CI: 1
RAILS_ENV: test
services:
postgres:
image: postgres:16.4-alpine
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:
POSTGRES_PASSWORD: password
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: ./backend
- run: bin/rubocop -f github
working-directory: ./backend
- uses: pnpm/action-setup@v4
with:
package_json_file: ./frontend/package.json
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: ./frontend/pnpm-lock.yaml
- run: pnpm i
- run: |
npm run graphql-codegen
npm run build:move
shell: bash
working-directory: ./frontend
- run: bundle exec rails db:prepare
working-directory: ./backend
- run: bundle exec rspec
working-directory: ./backend