Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: migrate to gha #5

Merged
merged 3 commits into from
Dec 23, 2021
Merged
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
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

# limit ci building to pushes to master not to get twice the notification email
# from github.
on:
workflow_dispatch:
push:
branches:
- 'master'
pull_request:
branches: '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install rust toolchain
uses: hecrj/setup-rust-action@v1.3.4
with:
rust-version: stable
components: clippy, rustfmt

- name: Cache
uses: Swatinem/rust-cache@v1

- name: Build
run: cargo build --all-features --all-targets

- name: Cargo fmt
continue-on-error: true
run: cargo fmt --all -- --check

- name: Cargo clippy
continue-on-error: true
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Test
run: timeout 15m cargo test --all --all-features
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Next

* documentation changes
* migrate from travis to github actions [#5](https://github.com/koivunej/derive-into-owned/pull/5)

## 0.1.0

Expand Down