diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2267fc96..bc0e1687 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,5 +55,22 @@ jobs: run: nix develop --command bash -c 'cd vscode-extension && yarn && SERVER_VERSION=$(cat ../.version) xvfb-run --auto-servernum yarn test' - name: Show extension test logs - if: job.status == 'failure' + if: always() && job.status == 'failure' run: cat vscode-extension/fixture/smithyql-log.txt | tail --lines 1000 + + build-parser: + name: "Build parser" + strategy: + matrix: + os: [ubuntu-latest, macos-latest, macos-13] + runs-on: ${{matrix.os}} + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4.1.1 + - uses: coursier/setup-action@v1 + with: + apps: sbt + jvm: adoptium:1.21 + - name: Parser tests + # intentionally not setting up nix + run: sbt parser/run diff --git a/build.sbt b/build.sbt index 76a0d945..27b19e32 100644 --- a/build.sbt +++ b/build.sbt @@ -75,6 +75,7 @@ val commonSettings = Seq( Test / scalacOptions += "-Wconf:cat=deprecation:silent,msg=Specify both message and version:silent", scalacOptions += "-release:11", mimaFailOnNoPrevious := false, + resolvers += "Sonatype S01 snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots", ) def module( @@ -116,6 +117,7 @@ lazy val parser = module("parser") "io.circe" %% "circe-generic" % "0.14.10" % Test, "io.circe" %% "circe-parser" % "0.14.10" % Test, "co.fs2" %% "fs2-io" % "3.11.0" % Test, + "org.polyvariant.treesitter4s" %% "core" % "0.3-460753c-SNAPSHOT", ) ) .dependsOn( diff --git a/smithy-build.json b/smithy-build.json index 2de3872b..f39d0dee 100644 --- a/smithy-build.json +++ b/smithy-build.json @@ -1,5 +1,5 @@ { - "sources": ["modules/core/src/test/smithy"], + "sources": ["modules/examples/src/main/smithy"], "mavenDependencies": [ "com.disneystreaming.alloy:alloy-core:0.3.14", "com.disneystreaming.smithy4s:smithy4s-protocol:0.18.25",