Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Change branch trigger, fix test, run tests in CI #15

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

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
18 changes: 0 additions & 18 deletions .github/workflows/rustbuild.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 🗳️ ElectionGuard Verifier

![package](https://github.com/microsoft/electionguard-verifier/workflows/Linux%20Build%20Rust/badge.svg)
[![CI](https://github.com/microsoft/electionguard-verifier/actions/workflows/ci.yml/badge.svg)](https://github.com/microsoft/electionguard-verifier/actions/workflows/ci.yml)
[![license](https://img.shields.io/github/license/microsoft/electionguard-verifier)](LICENSE)

This repository contains a reference implementation of a verifier for the
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use electionguard_verify::schema;

#[test]
fn test_parsing() -> Result<(), Box<dyn Error>> {
for file in fs::read_dir("tests/")? {
for file in fs::read_dir("tests/records/")? {
let file = file?;
if let Some(ext) = file.path().extension() {
if ext == "json" {
Expand Down
File renamed without changes.
File renamed without changes.