forked from themarshallproject/klaxon
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 982 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: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
env:
PGHOST: 127.0.0.1
PGUSER: klaxon-test-user
PGPASSWORD: "LjRKZViA88dMumv"
RAILS_ENV: test
RACK_ENV: test
NODE_ENV: test
services:
postgres:
image: postgres:14
env:
POSTGRES_DB: klaxon_test
POSTGRES_USER: klaxon-test-user
POSTGRES_PASSWORD: "LjRKZViA88dMumv"
ports:
- 5432:5432
# steps:
# - name: Checkout the project
# uses: actions/checkout@v3
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
# - name: Compile assets
# run: bundle exec rake assets:precompile assets:clean
# - name: Prepare the database
# run: bundle exec rake db:create db:schema:load --trace
# - name: Run the tests
# run: bundle exec rspec --tag ~skip --tag ~pending --format RSpec::Github::Formatter