feat(ci): Added CI

This commit is contained in:
Black_Raven committed 2025-12-10 23:38:53 +03:00
1 parent 5362c5fabf
commit 86fb44c129
2 files changed
+28 -45

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
name: Rust CI
on: [push, pull_request]
jobs:
build-and-test:
runs-on: docker
container:
image: rust:alpine
steps:
- name: Install Git
run: apk add --no-cache git
- name: Checkout code
env:
REPO_TOKEN: ${{ secrets.CHECKOUT_TOKEN }}
run: |
git clone https://oauth2:${{ env.REPO_TOKEN }}@git.rustprogersteam.ru/${{ github.repository }}.git .
git checkout ${{ github.sha }}
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose