-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (53 loc) · 1.36 KB
/
rubyci.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
47
48
49
50
51
52
53
54
55
name: Ruby CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up postgres
uses: harmon758/postgresql-action@v1
with:
postgresql version: "10.10"
postgresql user: test
postgresql password: test
- name: Set up Redis
uses: zhulik/redis-action@v1.0.0
with:
redis version: "5"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7.5"
bundler-cache: true
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install deps
run: sudo apt-get install -y libpq-dev
- name: Install yarn packages
run: yarn install --check-files --frozen-lockfile
- name: Setup DB
run: |
cp config/database.yml.github-ci config/database.yml
bundle exec rake db:setup
- name: Run Tests
run: bundle exec rake
dependabot-approve-and-merge:
needs: build
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3.6.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
target: minor