-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.02 KB
/
tests.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
name: Run Tests
on: push
jobs:
# Run tests
test:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:10
env:
MARIADB_USER: user
MARIADB_PASSWORD: password
MARIADB_DATABASE: database
MARIADB_ROOT_PASSWORD: password
ports: ["3306:3306"]
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- uses: actions/checkout@v3
- name: Create .env file
run: cat env.* > .env
- name: Load .env file
uses: xom9ikk/dotenv@v2
- name: wait for mysql
run: |
while ! mysqladmin ping -h"127.0.0.1" -P"3306" --silent; do
sleep 1
done
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: run tests but not the ones that touch solrcloud
run: bundle exec rspec --tag ~solrcloud
env:
GHA_TEST: "true"