-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (35 loc) · 1.05 KB
/
run-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
40
41
42
43
44
45
46
47
48
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check out logjam core
run: sed -i -e 's/url = git:/url = https:/' .gitmodules && git submodule init && git submodule update
- name: Start containers
run: docker-compose -f docker-compose.yml up -d
- name: Install system packages
run: sudo apt-get install build-essential zlib1g-dev libssl-dev libzmq3-dev
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Install node packages
run: yarn install --frozen-lockfile
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.1
- name: Install gems
run: bundle install
- name: Run tests
run: bundle exec rake
- name: Stop containers
if: always()
run: docker-compose -f docker-compose.yml down