27 lines
574 B
YAML
27 lines
574 B
YAML
name: Rust CI
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: alpine
|
|
|
|
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
|