Skip to content

Commit a257de8

Browse files
Feat: GitHub actions implementation.
1 parent 42d4393 commit a257de8

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: integration-tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
ci:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- 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 }}

0 commit comments

Comments
 (0)