Skip to content

build: update bindings and manifests #10

build: update bindings and manifests

build: update bindings and manifests #10

Workflow file for this run

name: CI
on:
push:
branches: ["*"]
paths:
- grammar.js
- src/**
- test/**
- bindings/**
- binding.gyp
pull_request:
paths:
- grammar.js
- src/**
- test/**
- bindings/**
- binding.gyp
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
test:
name: Test parser
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
steps:
- name: Set up the repo
uses: tree-sitter/parser-setup-action@v1.1
with:
node-version: ${{vars.NODE_VERSION}}
- name: Set up examples
run: |-
git clone https://github.com/JamesNK/Newtonsoft.Json examples/Newtonsoft.Json --single-branch --depth=1 --filter=blob:none
git clone https://github.com/nunit/nunit examples/nunit --single-branch --depth=1 --filter=blob:none
git clone https://github.com/OrchardCMS/orchard examples/orchard --single-branch --depth=1 --filter=blob:none
git clone https://github.com/microsoft/PowerToys examples/PowerToys --single-branch --depth=1 --filter=blob:none
- name: Run tests
uses: tree-sitter/parser-test-action@v1.2
with:
lint: ${{runner.os == 'Linux'}}
test-library: ${{runner.os == 'Linux'}}
corpus-files: |
examples/**/*.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/Benchmarks/BenchmarkConstants.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/Issues/Issue1569.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/LinqToSql/LinqToSqlClasses.designer.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/Serialization/DependencyInjectionTests.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/Serialization/WebApiIntegrationTests.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/TestObjects/Computer.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/TestObjects/DateTimeTestClass.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/TestObjects/DefaultValueAttributeTestClass.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/TestObjects/GeometricForms/Tags.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/TestObjects/Money/Tags.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/TestObjects/Pair.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/TestObjects/SqlTypesDataSet.Designer.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/Utilities/EnumUtilsTests.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonBinaryWriter.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/JavaScriptDateTimeConverter.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/UnixDateTimeConverter.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/FormatterAssemblyStyle.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/JsonException.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/JsonReaderException.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializationException.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/JsonTextReader.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/JsonValidatingReader.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/JsonWriter.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/JsonWriterException.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JValue.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaException.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/DefaultContractResolver.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/FormatterConverter.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonArrayContract.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonObjectContract.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonPrimitiveContract.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalWriter.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs
!examples/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DictionaryWrapper.cs
!examples/PowerToys/src/settings-ui/Settings.UI.Library/Attributes/CmdConfigureIgnoreAttribute.cs
!examples/PowerToys/src/settings-ui/Settings.UI/SettingsXAML/App.xaml.cs
!examples/nunit/src/NUnitFramework/framework/Assert.cs
!examples/nunit/src/NUnitFramework/framework/Compatibility/System.Threading/ManualResetEventSlim.cs
!examples/nunit/src/NUnitFramework/framework/Compatibility/System.Web.UI/ICallbackEventHandler.cs
!examples/nunit/src/NUnitFramework/framework/Constraints/MsgUtils.cs
!examples/nunit/src/NUnitFramework/framework/ExceptionExtensions.cs
!examples/nunit/src/NUnitFramework/framework/Internal/ExceptionHelper.cs
!examples/nunit/src/NUnitFramework/framework/Internal/PlatformHelper.cs
!examples/nunit/src/NUnitFramework/framework/Internal/Results/TestResult.cs
!examples/nunit/src/NUnitFramework/framework/Internal/TestParameters.cs
!examples/nunit/src/NUnitFramework/testdata/Polyfills.cs
!examples/nunit/src/NUnitFramework/tests/Assertions/AssertThatTests.cs
!examples/nunit/src/NUnitFramework/tests/Assertions/WarningTests.cs
!examples/nunit/src/NUnitFramework/tests/AsyncExecutionApiAdapter.Fixture-based.FSharp.cs
!examples/nunit/src/NUnitFramework/tests/Attributes/ApartmentAttributeTests.cs
!examples/nunit/src/NUnitFramework/tests/Attributes/RepeatableTestsWithTimeoutAttributesTests.cs
!examples/nunit/src/NUnitFramework/tests/Attributes/RequiresThreadAttributeTests.cs
!examples/nunit/src/NUnitFramework/tests/Attributes/SingleThreadedFixtureTests.cs
!examples/nunit/src/NUnitFramework/tests/AwaitableReturnTypeTests.cs
!examples/nunit/src/NUnitFramework/tests/Internal/UnexpectedExceptionTests.cs
!examples/nunit/src/NUnitFramework/tests/NonVoidResultAwaitableReturnTypeTests.cs
!examples/nunit/src/NUnitFramework/tests/SynchronizationContextTests.cs
!examples/nunit/src/NUnitFramework/tests/TestUtilities/StressUtility.cs
!examples/orchard/src/Orchard/DisplayManagement/Shapes/Composite.cs
fuzz:
name: Fuzz parser
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check for scanner changes
id: scanner-changes
run: |-
if git diff --quiet HEAD^ -- src/scanner.c; then
printf 'changed=false\n' >> "$GITHUB_OUTPUT"
else
printf 'changed=true\n' >> "$GITHUB_OUTPUT"
fi
- name: Fuzz parser
uses: tree-sitter/fuzz-action@v4
if: steps.scanner-changes.outputs.changed == 'true'