Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 31 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ on:
pull_request:
branches: [ main, dev ]

permissions:
contents: read

env:
# actions/checkout and the setup-* actions still bundle the deprecated
# Node 20 runtime; opt them into Node 24 now (default from 2026-06-02).
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
test-ts:
runs-on: ${{ matrix.os }}
Expand All @@ -14,9 +22,9 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [24, latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
Expand All @@ -36,9 +44,9 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: ['24', 'latest']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
Expand All @@ -55,9 +63,9 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
Expand All @@ -71,9 +79,9 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: ['1.20', '1.21', '1.22', '1.23', '1.24']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
Expand All @@ -89,7 +97,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -110,14 +118,18 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Install dependencies
working-directory: ./php
# setup-php intermittently writes a malformed github-oauth token to its
# auth.json; a fresh COMPOSER_HOME sidesteps it (no auth needed here).
run: composer install
env:
COMPOSER_HOME: ${{ runner.temp }}/composer-home
- name: Run tests
working-directory: ./php
run: vendor/bin/phpunit
Expand All @@ -128,7 +140,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build
Expand All @@ -144,9 +156,9 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Run tests
Expand All @@ -160,7 +172,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: ['17']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
Expand All @@ -173,6 +185,7 @@ jobs:
- name: Run tests (Windows)
if: runner.os == 'Windows'
working-directory: ./kt
shell: pwsh
run: .\gradlew.bat test

test-java:
Expand All @@ -182,7 +195,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: ['17']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
Expand All @@ -198,7 +211,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
Expand All @@ -222,7 +235,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
zig-version: ['0.13.0']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Zig ${{ matrix.zig-version }}
uses: mlugg/setup-zig@v1
with:
Expand Down Expand Up @@ -252,7 +265,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install nlohmann/json (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y nlohmann-json3-dev
Expand Down
167 changes: 167 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
name: Lint

on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]

permissions:
contents: read

env:
# actions/checkout and the setup-* actions still bundle the deprecated
# Node 20 runtime; opt them into Node 24 now (default from 2026-06-02).
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
lint-ts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- working-directory: ./ts
run: npm install
- working-directory: ./ts
run: make lint

lint-js:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- working-directory: ./js
run: npm install
- working-directory: ./js
run: make lint

lint-py:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- working-directory: ./py
run: pip install -r requirements-dev.txt
- working-directory: ./py
run: make lint

lint-go:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v2.5.0
- working-directory: ./go
run: |
gobin="$(go env GOPATH)/bin"
PATH="$gobin:$PATH" make lint

lint-rs:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- working-directory: ./rs
run: make lint

lint-rb:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
working-directory: ./rb
- working-directory: ./rb
run: make lint

lint-php:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- working-directory: ./php
# Use a fresh COMPOSER_HOME: setup-php intermittently writes a
# malformed github-oauth token to its auth.json, which makes
# `composer install` abort. We don't need authenticated installs here.
run: composer install
env:
COMPOSER_HOME: ${{ runner.temp }}/composer-home
- working-directory: ./php
run: make lint

lint-java:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- working-directory: ./java
run: make lint

lint-kt:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- working-directory: ./kt
run: ./gradlew detekt ktlintCheck

lint-lua:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.4"
- uses: leafo/gh-actions-luarocks@v4
- run: luarocks install luacheck
- working-directory: ./lua
run: luacheck src test

lint-zig:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
with:
version: '0.13.0'
- working-directory: ./zig
run: zig fmt --check src test build.zig

lint-cpp:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y nlohmann-json3-dev clang-tidy clang-format
- working-directory: ./cpp
run: make lint

lint-cs:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- working-directory: ./cs
run: dotnet build VoxgigStruct.csproj -warnaserror -nologo
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Loading
Loading