Skip to content

Commit

Permalink
Merge pull request #1 from Terseus/ci-cd
Browse files Browse the repository at this point in the history
Ci cd
  • Loading branch information
Terseus authored Nov 4, 2023
2 parents 9f73942 + 620a35f commit f8ebbe5
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Validations

on:
push:
branches:
- master
pull_request:
branches:
- "*"


jobs:
checks:
name: pre-commit checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: pre-commit/[email protected]
tests:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test
17 changes: 17 additions & 0 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Mirroring

on: [push, delete]

jobs:
to_gitlab:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
[email protected]:Terseus/yet-another-md5.git
ssh_private_key:
${{ secrets.GITLAB_MIRROR_SSH_PRIVATE_KEY }}

0 comments on commit f8ebbe5

Please sign in to comment.