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

✅ restore testing, add CI workflow and README.md #16

Merged
merged 3 commits into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
✅ restore testing, add CI workflow and README.md
  • Loading branch information
AucaCoyan committed Jun 5, 2023
commit f10bf712bd81e2edece7dcdada87ea5027363d83
18 changes: 0 additions & 18 deletions .github/workflows/clippy_check.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow run when something is pushed on main and it does
# normal checks like in the normal PRs

# Jobs on pull request
name: CI on main
on:
workflow_dispatch:
push:
branches:
- main

jobs:
format:
name: format rust files
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/[email protected]
- name: format files
run: cargo fmt --all --check

lint:
name: lint all rust files
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/[email protected]
- name: Clippy
run: cargo clippy --no-deps

test:
name: test rust files
strategy:
matrix:
include:
- os: windows-latest
- os: ubuntu-latest

runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/[email protected]
- name: run tests
run: cargo test --workspace
43 changes: 43 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Jobs on pull request
name: Pull request
on: pull_request

jobs:
format:
name: format rust files
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/[email protected]
- name: format files
run: cargo fmt --all --check

lint:
name: lint all rust files
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/[email protected]
- name: Clippy
run: cargo clippy --no-deps

test:
name: test rust files
strategy:
matrix:
include:
- os: windows-latest
- os: ubuntu-latest

runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/[email protected]
- name: run tests
run: cargo test --workspace
Loading
Loading