Skip to content

Commit

Permalink
ci: update actions & publish python package
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Sep 9, 2024
1 parent 6d65cca commit 9b0b574
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
steps:
- name: Set up repository
uses: tree-sitter/[email protected]
- name: Checkout repository
uses: actions/checkout@v4
- name: Install tree-sitter CLI
uses: tree-sitter/setup-action/cli@v1
- name: Run tests
uses: tree-sitter/parser-test-action@v2
with:
node-version: ${{vars.NODE_VERSION}}
test-rust: ${{runner.os == 'Linux'}}
- name: Clone apisix corpus
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -73,11 +77,10 @@ jobs:
with:
path: examples/xmake
repository: xmake-io/xmake
- name: Run tests
uses: tree-sitter/parser-test-action@v1.2
- name: Parse examples
uses: tree-sitter/parse-action@v4
with:
test-library: ${{runner.os == 'Linux'}}
corpus-files: |-
files: |-
examples/apisix/**/*.lua
examples/kong/**/*.lua
examples/lua/**/*.lua
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ jobs:
uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main
secrets:
CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_TOKEN}}
pypi:
uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
secrets:
PYPI_API_TOKEN: ${{secrets.PYPI_TOKEN}}

0 comments on commit 9b0b574

Please sign in to comment.