Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

fix init function

fix init function #24

Workflow file for this run

name: Check
on:
push:
branches: [ "main" ]
tags:
- "v*"
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
MEDIA_USER_TOKEN: ${{ secrets.MEDIA_USER_TOKEN }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Protoc
uses: arduino/setup-protoc@v3
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --verbose
- name: Run tests
run: cargo test --lib --verbose
- uses: katyo/publish-crates@v2
if: startsWith(github.ref, 'refs/tags/')
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}