teeworlds_network/.github/workflows/integration.yml

34 lines
821 B
YAML
Raw Normal View History

2022-11-11 13:55:44 +00:00
name: Integration tests
2022-11-05 17:41:06 +00:00
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
2022-11-11 13:55:44 +00:00
connect-to-server:
2022-11-05 17:41:06 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 3.1
uses: actions/setup-ruby@v1
with:
ruby-version: 3.1.x
- name: Prepare
run: |
sudo apt-get update -y
2022-11-12 15:47:12 +00:00
sudo apt-get install -y shellcheck teeworlds teeworlds-server
2022-11-05 17:41:06 +00:00
gem install bundler
gem install rubocop:1.31.2
bundle install --jobs 4 --retry 3
- name: Test sending chat messages
run: |
2022-11-12 15:47:12 +00:00
./integration_test/run.sh client/chat.rb
2022-11-05 17:41:06 +00:00
- name: Test reconnect
run: |
2022-11-12 15:47:12 +00:00
./integration_test/run.sh client/reconnect.rb
2022-11-06 17:26:14 +00:00
- name: Test rcon
run: |
2022-11-12 15:47:12 +00:00
./integration_test/run.sh client/rcon.rb