Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Update main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsky committed Feb 25, 2021
1 parent 94a4d5d commit f710620
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 33 deletions.
47 changes: 15 additions & 32 deletions .github/workflows/ci.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,49 @@
name: CI

name: Run Tests
on:
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "LICENSE"
- "**/.gitignore"
pull_request: ~

jobs:
checks:
runs-on: ${{ matrix.os }}
tests:
name: unit tests
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
rust-toolchain:
- stable
- nightly
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust-toolchain }}
components: rustfmt, clippy
override: true
- name: Rustfmt

- name: Check Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Clippy

- name: Run Clippy
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -Dwarnings
unit_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
rust-toolchain:
- stable
- nightly
steps:
- uses: actions/[email protected]
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust-toolchain }}
override: true
- name: Build (debug)
uses: actions-rs/cargo@v1
with:
command: build
- name: Perform Unit Tests

- name: Run Tests
uses: actions-rs/cargo@v1
with:
command: test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

_A super-fast tool for taking stale branches and push requests and deleting and/or closing them_

[![Actions Status](https://github.com/wayfair/foxdie/workflows/CI/badge.svg?branch=main)](https://github.com/wayfair/foxdie/actions)
[![Test Status](https://github.com/wayfair/foxdie/workflows/Run%20Tests/badge.svg)](https://github.com/wayfair/foxdie/actions?query=workflow%253A%2522Run+Tests%2522)

## Setup

Expand Down

0 comments on commit f710620

Please sign in to comment.