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

Commit f710620

Browse files
committed
Update main workflow
1 parent 94a4d5d commit f710620

File tree

2 files changed

+16
-33
lines changed

2 files changed

+16
-33
lines changed
Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,49 @@
1-
name: CI
2-
1+
name: Run Tests
32
on:
43
push:
4+
branches:
5+
- main
56
paths-ignore:
67
- "**/*.md"
78
- "LICENSE"
89
- "**/.gitignore"
10+
pull_request: ~
911

1012
jobs:
11-
checks:
12-
runs-on: ${{ matrix.os }}
13+
tests:
14+
name: unit tests
1315
strategy:
1416
matrix:
1517
os:
1618
- ubuntu-latest
17-
- windows-latest
18-
- macOS-latest
1919
rust-toolchain:
2020
- stable
2121
- nightly
22+
runs-on: ${{ matrix.os }}
2223
steps:
23-
- uses: actions/[email protected]
24+
- uses: actions/checkout@v2
25+
2426
- uses: actions-rs/toolchain@v1
2527
with:
2628
profile: minimal
2729
toolchain: ${{ matrix.rust-toolchain }}
2830
components: rustfmt, clippy
2931
override: true
30-
- name: Rustfmt
32+
33+
- name: Check Formatting
3134
uses: actions-rs/cargo@v1
3235
with:
3336
command: fmt
3437
args: -- --check
35-
- name: Clippy
38+
39+
- name: Run Clippy
3640
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
3741
uses: actions-rs/cargo@v1
3842
with:
3943
command: clippy
4044
args: -- -Dwarnings
41-
unit_tests:
42-
runs-on: ${{ matrix.os }}
43-
strategy:
44-
matrix:
45-
os:
46-
- ubuntu-latest
47-
- windows-latest
48-
- macOS-latest
49-
rust-toolchain:
50-
- stable
51-
- nightly
52-
steps:
53-
- uses: actions/[email protected]
54-
- uses: actions-rs/toolchain@v1
55-
with:
56-
profile: minimal
57-
toolchain: ${{ matrix.rust-toolchain }}
58-
override: true
59-
- name: Build (debug)
60-
uses: actions-rs/cargo@v1
61-
with:
62-
command: build
63-
- name: Perform Unit Tests
45+
46+
- name: Run Tests
6447
uses: actions-rs/cargo@v1
6548
with:
6649
command: test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

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

77
## Setup
88

0 commit comments

Comments
 (0)