Skip to content

Adds CI.

Adds CI. #2

Workflow file for this run

name: Map Generation CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
Map:
name: Verify Map Generation
runs-on: ubuntu-latest
container:
image: ubuntu:20.04
steps:
- uses: actions/checkout@v3
- name: Install requirements
run: |
apt-get update
apt-get install -y python3-pip python3-empy
pip3 install -r requirements.txt
- name: Generate maps
run: |
bash tools/update_resources.sh
- name: Output git status
run: |
git status
- name: Verify there is no changes
run: |
ret=git status --porcelain | wc -l
if [ $ret -ne 0 ]; then
echo "There are changes in the generated files. Please run tools/update_resources.sh and commit the changes."
exit 1
fi