Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #439 from sodiumoxide/actions
Browse files Browse the repository at this point in the history
Add github actions
  • Loading branch information
Dylan-DPC committed Oct 24, 2020
2 parents ae5902a + e417a55 commit 321e51b
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .github/bors.toml
@@ -0,0 +1,8 @@
status = [
"test (ubuntu-latest, stable)",
"test (macos-latest, stable)",
"test (windows-latest, stable)",
"rustfmt",
"clippy",
]
delete_merged_branches = true
72 changes: 72 additions & 0 deletions .github/workflows/default.yml
@@ -0,0 +1,72 @@
name: Build & Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust:
- 1.36.0
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Build docs
run: cargo doc

fmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --lib --tests -- --deny warnings
4 changes: 0 additions & 4 deletions bors.toml

This file was deleted.

0 comments on commit 321e51b

Please sign in to comment.