Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example files for CI parsing #64

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,21 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-14]
steps:
- uses: actions/checkout@v4
with:
submodules: ${{runner.os != 'Windows'}}
- uses: tree-sitter/setup-action/cli@v1
- uses: tree-sitter/parser-test-action@v2
with:
generate: ${{runner.os == 'Linux'}}
- name: Parse sample files
uses: tree-sitter/parse-action@v4
id: parse-files
continue-on-error: true
with:
files: examples/**/*.fs
files: |
examples/Giraffe/**/*.fs
examples/FSharp.Data/**/*.fs
examples/FSharp.Compiler/tests/**/*.fs
- name: Upload failures artifact
uses: actions/upload-artifact@v4
if: "!cancelled() && steps.parse-files.outcome == 'failure'"
Expand Down
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "examples/FSharp.Data"]
path = examples/FSharp.Data
url = [email protected]:fsprojects/FSharp.Data.git
[submodule "examples/Giraffe"]
path = examples/Giraffe
url = [email protected]:giraffe-fsharp/Giraffe.git
Comment on lines +1 to +6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest using F# compiler, specifically files in tests, since we add new syntax constructs the moment they are added.

[submodule "examples/FSharp.Compiler"]
path = examples/FSharp.Compiler
url = [email protected]:dotnet/fsharp.git
1 change: 1 addition & 0 deletions examples/FSharp.Compiler
Submodule FSharp.Compiler added at 85bc46
1 change: 1 addition & 0 deletions examples/FSharp.Data
Submodule FSharp.Data added at c5b026
1 change: 1 addition & 0 deletions examples/Giraffe
Submodule Giraffe added at b369a0
Loading