Skip to content

Commit

Permalink
First version working
Browse files Browse the repository at this point in the history
Tasks:

- Add gitignore file
- Filter idea files
- Add basic tests, clean and reorganize code
- Organize imports and minor changes
- Format code a la rust
- Fix biblio content addition and date format in hbs
- Add MPL 2.0 license
- Add github workflows for tests based on actions-rs
  • Loading branch information
francisco-perez-sorrosal committed Feb 9, 2021
0 parents commit a23a64e
Show file tree
Hide file tree
Showing 12 changed files with 1,854 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
toolchain:
- nightly
cargo_flags:
- "--no-default-features"
- "--all-features"
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all ${{ matrix.cargo_flags }}

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all ${{ matrix.cargo_flags }}
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

.idea/
mdbook-bib.iml
Loading

0 comments on commit a23a64e

Please sign in to comment.