Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed May 21, 2022
0 parents commit b4a3d3b
Show file tree
Hide file tree
Showing 18 changed files with 2,850 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: CI

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:

jobs:
formatting-and-quality:
name: Formatting and Quality
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Setup
run: rustup component add clippy rustfmt

- name: Format
run: cargo fmt -- --check

- name: Clippy
run: cargo clippy -- -Dwarnings

build-and-test:
name: Build and Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Build and Test
run: cargo test

release:
name: Release
if: ${{ github.ref_type == 'tag' }}
needs:
- build-and-test
- formatting-and-quality
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build
run: cargo build --release

- name: Publish release
uses: softprops/action-gh-release@v1
with:
files: target/release/git-collage
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit b4a3d3b

Please sign in to comment.