feat: split ci in multiple files and add badges to README.md
This commit is contained in:
parent
00000070ba
commit
000000808d
|
@ -0,0 +1,15 @@
|
||||||
|
name: Check
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Check
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: cargo check
|
||||||
|
run: cargo check
|
|
@ -1,29 +0,0 @@
|
||||||
name: Continuous Integration
|
|
||||||
|
|
||||||
on: push
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Check
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: cargo check
|
|
||||||
run: cargo check
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Test
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: cargo test
|
|
||||||
run: cargo test
|
|
||||||
clippy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Lint (clippy)
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: cargo clippy
|
|
||||||
run: cargo clippy -- -D warnings
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
name: Clippy
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
clippy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Lint (clippy)
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: cargo clippy
|
||||||
|
run: cargo clippy -- -D warnings
|
|
@ -0,0 +1,15 @@
|
||||||
|
name: Tests
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Test
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: cargo test
|
||||||
|
run: cargo test
|
|
@ -1,3 +1,6 @@
|
||||||
|
![Check](https://github.com/janezicmatej/aoc-template/actions/workflows/check.yml/badge.svg)
|
||||||
|
![Tests](https://github.com/janezicmatej/aoc-template/actions/workflows/tests.yml/badge.svg)
|
||||||
|
![Clippy](https://github.com/janezicmatej/aoc-template/actions/workflows/clippy.yml/badge.svg)
|
||||||
# Advent-of-Code {YEAR}
|
# Advent-of-Code {YEAR}
|
||||||
*This is a dumbed down version of [fspoettel/advent-of-code-rust](https://github.com/fspoettel/advent-of-code-rust) with some extra features*
|
*This is a dumbed down version of [fspoettel/advent-of-code-rust](https://github.com/fspoettel/advent-of-code-rust) with some extra features*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue