feat: fmt ci
This commit is contained in:
		
							
								
								
									
										15
									
								
								.github/workflows/check.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/check.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,15 +0,0 @@
 | 
				
			|||||||
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
 | 
					 | 
				
			||||||
							
								
								
									
										36
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,36 @@
 | 
				
			|||||||
 | 
					name: Check
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on: push
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					env:
 | 
				
			||||||
 | 
					    CARGO_TERM_COLOR: always
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					    check:
 | 
				
			||||||
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					        name: Check
 | 
				
			||||||
 | 
					        steps:
 | 
				
			||||||
 | 
					            - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					            - name: cargo check
 | 
				
			||||||
 | 
					              run: cargo check
 | 
				
			||||||
 | 
					    test:
 | 
				
			||||||
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					        name: Test
 | 
				
			||||||
 | 
					        steps:
 | 
				
			||||||
 | 
					            - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					            - name: cargo test
 | 
				
			||||||
 | 
					              run: cargo test
 | 
				
			||||||
 | 
					    clippy:
 | 
				
			||||||
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					        name: Lint (clippy)
 | 
				
			||||||
 | 
					        steps:
 | 
				
			||||||
 | 
					            - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					            - name: cargo clippy
 | 
				
			||||||
 | 
					              run: cargo clippy -- -D warnings
 | 
				
			||||||
 | 
					    fmt:
 | 
				
			||||||
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					        name: Format
 | 
				
			||||||
 | 
					        steps:
 | 
				
			||||||
 | 
					            - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					            - name: cargo fmt
 | 
				
			||||||
 | 
					              run: cargo fmt --check
 | 
				
			||||||
							
								
								
									
										15
									
								
								.github/workflows/clippy.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/clippy.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,15 +0,0 @@
 | 
				
			|||||||
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
 | 
					 | 
				
			||||||
							
								
								
									
										15
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,15 +0,0 @@
 | 
				
			|||||||
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,6 +1,6 @@
 | 
				
			|||||||
[package]
 | 
					[package]
 | 
				
			||||||
name = "aoc"
 | 
					name = "aoc"
 | 
				
			||||||
version = "0.3.0"
 | 
					version = "16.0.0"
 | 
				
			||||||
edition = "2021"
 | 
					edition = "2021"
 | 
				
			||||||
authors = ["Matej Janežič <janezic.mj@gmail.com>"]
 | 
					authors = ["Matej Janežič <janezic.mj@gmail.com>"]
 | 
				
			||||||
default-run = "aoc"
 | 
					default-run = "aoc"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,4 @@
 | 
				
			|||||||

 | 
					
 | 
				
			||||||

 | 
					 | 
				
			||||||

 | 
					 | 
				
			||||||
# 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*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user