-
Notifications
You must be signed in to change notification settings - Fork 96
27 lines (27 loc) · 882 Bytes
/
build.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
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
# caching causes issues - https://github.com/thoughtbot/appraisal/issues/173
# bundler-cache: true
- run: bundle install
- uses: ankane/setup-postgres@v1
with:
database: ultimate_test
- uses: ankane/setup-mysql@v1
with:
database: ultimate_test
- uses: ankane/setup-elasticsearch@v1
- run: |
sudo apt-get update
sudo apt-get install coinor-libcbc-dev libcurl4-openssl-dev memcached redis-server
sudo systemctl start memcached
sudo systemctl start redis-server
- run: bundle exec appraisal install
- run: bundle exec appraisal "rake test || true"