Skip to content

Commit

Permalink
Add GitHub CI action.
Browse files Browse the repository at this point in the history
- Need to use nightly toolchain atm.
  • Loading branch information
randombtree committed Dec 8, 2023
1 parent 6e2b9f9 commit 9f17cde
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,28 @@
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@master
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run tests with tokio backend
run: cargo test --no-default-features --features tokio

0 comments on commit 9f17cde

Please sign in to comment.