Skip to content

Bump eslint from 8.53.0 to 9.20.0 #72

Bump eslint from 8.53.0 to 9.20.0

Bump eslint from 8.53.0 to 9.20.0 #72

Workflow file for this run

# This workflow will test pull request on different platforms
name: Build PR
on: [pull_request]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: sudo apt-get update
- run: sudo apt install -y build-essential cmake libsdl2-dev
- run: npm ci
- name: Check with eslint
run: npm run eslint
build-brew:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: sudo apt-get update
- run: sudo apt install -y build-essential cmake git
- run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Install SDL2 with brew
run: /home/linuxbrew/.linuxbrew/bin/brew install sdl2
- name: Compile
run: npm ci
build-mac:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install SDL2 with brew
run: brew install sdl2
- name: Compile
run: npm ci
check-cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12.4'
- run: sudo apt-get update
- run: sudo apt install -y cppcheck
- name: Install cpplint
run: pip install cpplint
- name: Lint
run: cpplint src/*
- name: Check
run: cppcheck --std=c++17 --language=c++ src/*
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: check format
run: clang-format -n src/* |& tee errors
- run: test ! -s errors