Skip to content

Commit 2a1accc

Browse files
Fix: GitHub rollback doesn't work as expected.
1 parent a257de8 commit 2a1accc

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/integration-tests.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: integration-tests
33
on:
44
push:
55
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
68

79
jobs:
810
ci:
@@ -11,15 +13,9 @@ jobs:
1113
steps:
1214
- uses: actions/checkout@v4
1315
- uses: dtolnay/rust-toolchain@stable
14-
15-
- run: cargo build
16-
- run: cargo test -- --nocapture
17-
18-
- if: failure()
19-
run: |
20-
git config user.email "integration-tests@github.com"
21-
git config user.name "Integration Tests"
22-
git revert HEAD --no-edit
23-
git push
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
17+
- name: Build
18+
run: cargo build
19+
20+
- name: Run tests
21+
run: cargo test

0 commit comments

Comments
 (0)