Skip to content

Update CI

Update CI #29

Workflow file for this run

name: Integration tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test-server:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
ruby: ['3.1', '3.2', '3.3', head]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Prepare Linux
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update -y
sudo apt-get install git libfontconfig1-dev libsndfile1-dev libsdl2-dev libmpg123-dev libopenal1 libopenal-dev
- name: Prepare macOS
if: contains(matrix.os, 'macOS')
run: |
brew update || true
brew install pkg-config sdl2 || true
sudo rm -rf /Library/Developer/CommandLineTools
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Prepare chichilku3
run: |
mkdir -p ~/.chichilku/chichilku3
cd ~/.chichilku/chichilku3 || exit 1
git clone https://github.com/chichilku/chichilku3-maps.git maps
- name: Run server
run: |
./tools/test.sh