name: CI
on:
push:
branches:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
# create a git tag from cargo semver
- uses: jaliborc/action-general-autotag@1.0.0
with:
GITHUB_TOKEN: "${{ secrets.PAT }}"
source_file: "Cargo.toml"
extraction_regex: "version\\s*=\\s*\"([\\d\\.]+)\""