updated mongo #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |