-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.28 KB
/
test.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
49
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: |
ruby -e 'require "zip"' || true
gem install rubyzip
gem list | grep zip
./tools/test.sh