Skip to content

Commit

Permalink
feat: add a test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dnbln committed Feb 3, 2024
1 parent b815e33 commit b214cbd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/deploy_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
# Replace `main` with your branch’s name
push:
branches: ["trunk"]
paths:
- 'docs/**'
- '.github/workflows/deploy_docs.yaml'
# Specify to run a workflow manually from the Actions tab on GitHub
workflow_dispatch:

Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test rust
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy

- name: Build
run: cargo build

- name: Test
run: cargo test
1 change: 0 additions & 1 deletion cargo-difftests/tests/test_support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::{
borrow::Cow,
ffi::OsStr,
path::{Path, PathBuf},
time::SystemTime,
};

use git2::{IntoCString, Oid, Repository};
Expand Down

0 comments on commit b214cbd

Please sign in to comment.