Skip to content

Commit

Permalink
Use github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Varlakov committed Dec 21, 2021
1 parent 842941c commit 37de580
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 25 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 5 * * *'
workflow_call:

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy -- -D clippy::all
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish

on:
push:
tags:
- v*.*.*

jobs:
build:
uses: ZenGo-X/curv/.github/workflows/build.yml@github-actions
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish crate
env:
TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo publish --token "$TOKEN"
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

0 comments on commit 37de580

Please sign in to comment.