Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
b0o committed Oct 16, 2024
1 parent 3d1cdb2 commit f653750
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 46 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ jobs:
uses: tree-sitter/setup-action/cli@v1
- name: Set up examples
run: |-
git clone https://github.com/bazelbuild/starlark examples/starlark --single-branch --depth=1 --filter=blob:none
git clone https://github.com/mcuadros/ascode examples/ascode --single-branch --depth=1 --filter=blob:none
git clone https://github.com/cruise-automation/isopod examples/isopod --single-branch --depth=1 --filter=blob:none
git clone https://github.com/cython/cython Demos --single-branch --depth=1 --filter=blob:none
- name: Run tests
uses: tree-sitter/parser-test-action@v2
with:
Expand All @@ -48,23 +46,5 @@ jobs:
uses: tree-sitter/parse-action@v4
with:
files: |
examples/**/*.bzl
examples/**/*.star
examples/**/*.ipd
!examples/starlark/test_suite/testdata/go/assign.star
!examples/starlark/test_suite/testdata/go/builtins.star
!examples/starlark/test_suite/testdata/go/dict.star
!examples/starlark/test_suite/testdata/go/function.star
!examples/starlark/test_suite/testdata/go/int.star
!examples/starlark/test_suite/testdata/go/list.star
!examples/starlark/test_suite/testdata/go/misc.star
!examples/starlark/test_suite/testdata/go/string.star
!examples/starlark/test_suite/testdata/go/tuple.star
!examples/starlark/test_suite/testdata/java/dict.star
!examples/starlark/test_suite/testdata/java/list_mutation.star
!examples/starlark/test_suite/testdata/java/min_max.star
!examples/starlark/test_suite/testdata/java/reversed.star
!examples/starlark/test_suite/testdata/java/string_slice_index.star
!examples/starlark/test_suite/testdata/rust/int.star
!examples/starlark/test_suite/testdata/rust/josharian_fuzzing.star
!examples/starlark/test_suite/testdata/rust/mutation_during_iteration.star
examples/**/*.pyx
examples/**/*.pxd
46 changes: 23 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: Publish packages

on:
push:
tags: ["*"]

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
npm:
uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main
secrets:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
crates:
uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main
secrets:
CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}}
pypi:
uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
secrets:
PYPI_API_TOKEN: ${{secrets.PYPI_API_TOKEN}}
# name: Publish packages
#
# on:
# push:
# tags: ["*"]
#
# concurrency:
# group: ${{github.workflow}}-${{github.ref}}
# cancel-in-progress: true
#
# jobs:
# npm:
# uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main
# secrets:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# crates:
# uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main
# secrets:
# CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}}
# pypi:
# uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
# secrets:
# PYPI_API_TOKEN: ${{secrets.PYPI_API_TOKEN}}

0 comments on commit f653750

Please sign in to comment.