Skip to content

Commit 80f3c4d

Browse files
ci: Check
1 parent 579de17 commit 80f3c4d

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
check:
11+
runs-on: ubuntu-latest
12+
13+
# For downloading artifacts
14+
permissions:
15+
actions: read
16+
contents: read
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: taiki-e/install-action@v2
22+
with:
23+
tool: just,ast-grep
24+
25+
- uses: astral-sh/setup-uv@v6
26+
with:
27+
cache-dependency-glob: |
28+
justfile
29+
30+
- run: just setup
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- run: just check
35+
- run: just test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Typst rules based on [ast-grep](https://ast-grep.github.io)
22

3+
[![Check](https://github.com/YDX-2147483647/ast-grep-typst/actions/workflows/ci.yml/badge.svg)](https://github.com/YDX-2147483647/ast-grep-typst/actions/workflows/ci.yml)
4+
35
## Usage
46

57
```shell

0 commit comments

Comments
 (0)