-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (56 loc) · 1.75 KB
/
push.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
56
57
58
59
60
61
62
63
64
65
# Copyright 2023-2024, Pablo Fernandez
#
# This file is part of Repeater World.
#
# Repeater World is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General
# Public License as published by the Free Software Foundation, either version 3 of the License.
#
# Repeater World is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along with Repeater World. If not, see
# <https://www.gnu.org/licenses/>.
name: Push
on: push
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 20
services:
postgres:
image: postgis/postgis:15-3.3
ports:
- "5001:5432"
env:
POSTGRES_USER: repeater_world
POSTGRES_PASSWORD: te6ahng1phi1uizaeGhahMof1
POSTGRES_DB: repeater_world_test
env:
RAILS_ENV: test
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Ruby and Gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Set Up Database Schema
run: bin/rails db:migrate
- name: Precompile assets
run: bundle exec rake assets:precompile
- name: Run Tests
run: bundle exec rspec
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Lint Ruby files
run: bundle exec rake standard