Files
Rust/.forgejo/workflows/demo.yaml
T
2026-02-16 14:04:36 +03:00

27 lines
580 B
YAML

name: Rust CI
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-20.04
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