Skip to content

Commit

Permalink
.github: add CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrinaker committed May 1, 2024
1 parent ca2e6dc commit ce2fc84
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.77.0
id: toolchain
with:
components: clippy, rustfmt
- uses: actions/cache@v4
with:
path: target
key: ${{runner.os}}-target-${{steps.toolchain.outputs.cachekey}}-${{hashFiles('Cargo.lock')}}
- run: cargo build --tests
- run: cargo test
- run: cargo clippy --tests --no-deps -- -D warnings
- run: cargo fmt --check
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Goldenscript

[![CI](https://github.com/erikgrinaker/toydb/actions/workflows/ci.yml/badge.svg)](https://github.com/erikgrinaker/toydb/actions/workflows/ci.yml)

A Rust testing framework loosely based on Cockroach Labs'
[`datadriven`](https://github.com/cockroachdb/datadriven) framework for Go. It
combines several testing techniques that make it easy and efficient to write and
Expand Down

0 comments on commit ce2fc84

Please sign in to comment.