Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/audit-rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Security audit

on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
- cron: '0 0 * * *'
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/audit-secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Secrets audit

on: [push]

jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: gitleaks-action
uses: aslafy-z/gitleaks-action@912885d
23 changes: 23 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Greetings

on: [pull_request, issues]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
Hey there ${{ github.actor }}, looks like this is your first contribution! Welcome! :slightly_smiling_face: We're excited to have you!

If you haven't already, be sure to check out the [code of conduct](https://github.com/${{ github.repository }}/blob/${{ github.sha }}/CODE_OF_CONDUCT.md).

<span style="font-size: 0.5em">This message was generated by the [`greetings`](https://github.com/${{ github.repository }}/blob/${{ github.sha }}/.github/workflows/greetings.yml) Github workflow.</span>
pr-message: |
Hey there ${{ github.actor }}, looks like this is your first contribution! Welcome! :slightly_smiling_face: We're excited to have you!

If you haven't already, be sure to check out the [code of conduct](https://github.com/${{ github.repository }}/blob/${{ github.sha }}/CODE_OF_CONDUCT.md).

<span style="font-size: 0.5em">This message was generated by the [`greetings`](https://github.com/${{ github.repository }}/blob/${{ github.sha }}/.github/workflows/greetings.yml) Github workflow.</span>
9 changes: 9 additions & 0 deletions .github/workflows/pr-wip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
on: [pull_request]
name: Check for WIP PR

jobs:
wip:
name: Check for WIP PR
runs-on: ubuntu-latest
steps:
- uses: wip/action@master
102 changes: 102 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Push checks

on: [push]

jobs:
check:
name: Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust:
- stable
- beta
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true

- name: "Run `cargo check`"
uses: actions-rs/cargo@v1
with:
command: check

test:
name: Test Suite
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust:
- stable
- beta
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true

- name: "Run `cargo test`"
uses: actions-rs/cargo@v1
with:
command: test

fmt:
name: Rustfmt
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust:
- stable
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt

- name: "Run `cargo fmt`"
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust:
- stable
- beta
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
components: clippy

- name: "Run `cargo clippy`"
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
24 changes: 24 additions & 0 deletions .github/workflows/release-on-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
tags:
- 'v*'

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
id: create_release
uses: actions/create-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
allowMergeCommits: true
commitsOnly: true