Skip to content

Commit 92ea78b

Browse files
committed
add workflows
1 parent 8b11253 commit 92ea78b

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/AutoApprove.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# will be removed when this project has more than one maintainers
2+
3+
name: AutoApprove
4+
5+
on:
6+
pull_request:
7+
types: [opened, reopened, synchronize, ready_for_review]
8+
9+
jobs:
10+
approve:
11+
if: |
12+
github.event.pull_request.user.login == 'kanarus' &&
13+
!github.event.pull_request.draft
14+
runs-on: ubuntu-latest
15+
permissions:
16+
pull-requests: write
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: approve
20+
env:
21+
GH_TOKEN: ${{ github.token }}
22+
run: |
23+
gh pr review ${{ github.event.number }} --approve

.github/workflows/CI.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main, v*]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
toolchain: [stable, nightly]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- run: |
20+
rustup update
21+
rustup default ${{ matrix.toolchain }}
22+
23+
- run: |
24+
cargo build

0 commit comments

Comments
 (0)