Skip to content

Commit

Permalink
Merge pull request #17 from alecdotninja/alecdotninja-github-actions
Browse files Browse the repository at this point in the history
Setup Github Actions
  • Loading branch information
alecdotninja authored Jan 15, 2024
2 parents d077a2e + 6e01e91 commit 2973107
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 15 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings

jobs:
bench:
name: ⏱️ Benchmark
runs-on: ubuntu-latest

needs:
- build

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- name: Run benchmarks
run: cargo bench --all

build:
name: 🔨 Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- name: Build (release)
run: cargo build --all --release

fmt:
name: ✨ Check Formatting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- name: Run Rustfmt
run: cargo fmt --all -- --check

lint:
name: 🧹 Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- name: Run Clippy
run: cargo clippy --all

test:
name: 🧪 Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- name: Run tests
run: cargo test --all
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tailcall

[![Build Status](https://travis-ci.org/alecdotninja/tailcall.svg?branch=master)](https://travis-ci.org/alecdotninja/tailcall)
[![CI](https://github.com/alecdotninja/tailcall/actions/workflows/ci.yml/badge.svg)](https://github.com/alecdotninja/tailcall/actions/workflows/ci.yml)
[![Current Crates.io Version](https://img.shields.io/crates/v/tailcall.svg)](https://crates.io/crates/tailcall)
[![Docs](https://docs.rs/tailcall/badge.svg)](https://docs.rs/tailcall)

Expand Down

0 comments on commit 2973107

Please sign in to comment.