feat: resolve minimap tile urls in map component #22
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- packages/spelunker-api/** | |
- .github/workflows/api-ci.yml | |
pull_request: | |
branches: | |
- master | |
paths: | |
- packages/spelunker-api/** | |
- .github/workflows/api-ci.yml | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- '16' | |
- '18' | |
name: Node ${{ matrix.node }} | |
env: | |
STORMLIB_COMMIT: bd203c036bf6a8a900fb9557f9dfa95b6eb1f46b | |
BLPLIB_COMMIT: b947c721dc219d9e982adcfc3f7bdb339564a75b | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Cache StormLib | |
uses: actions/cache@v2 | |
id: cache-stormlib | |
with: | |
key: stormlib-${{ runner.os }}-${{ env.STORMLIB_COMMIT }} | |
path: StormLib | |
- name: Build StormLib | |
if: steps.cache-stormlib.outputs.cache-hit != 'true' | |
run: | | |
git clone https://github.com/ladislav-zezula/StormLib.git | |
cd StormLib | |
git checkout ${{ env.STORMLIB_COMMIT }} | |
cmake CMakeLists.txt -DBUILD_SHARED_LIBS=ON | |
- name: Install StormLib | |
run: | | |
cd StormLib | |
sudo make install | |
- name: Cache BLPLib | |
uses: actions/cache@v2 | |
id: cache-blplib | |
with: | |
key: blplib-${{ runner.os }}-${{ env.BLPLIB_COMMIT }} | |
path: BLPConverter | |
- name: Build BLPLib | |
if: steps.cache-blplib.outputs.cache-hit != 'true' | |
run: | | |
git clone https://github.com/Kanma/BLPConverter.git | |
cd BLPConverter | |
git checkout ${{ env.BLPLIB_COMMIT }} | |
cmake CMakeLists.txt -DWITH_LIBRARY=YES -DCMAKE_CXX_STANDARD=14 | |
- name: Install BLPLib | |
run: | | |
cd BLPConverter | |
sudo make install | |
- name: Reload shared libraries | |
run: sudo ldconfig | |
- name: Cache Node modules | |
uses: actions/cache@v2 | |
id: cache-node | |
with: | |
key: node-${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('./packages/spelunker-api/package-lock.json') }} | |
path: ~/.npm | |
- name: Install Node modules | |
run: npm install | |
working-directory: ./packages/spelunker-api | |
- name: Lint | |
run: npm run lint | |
working-directory: ./packages/spelunker-api |