Use my own flavor of GitHub workflows
This commit is contained in:
parent
59a3ecef65
commit
ba9d0ba054
5 changed files with 50 additions and 22 deletions
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
|
@ -1 +1 @@
|
||||||
github: [grovesNL]
|
github: [grovesNL, hecrj]
|
||||||
|
|
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
|
@ -1,21 +0,0 @@
|
||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Build
|
|
||||||
run: cargo build --verbose
|
|
||||||
- name: Run tests
|
|
||||||
run: cargo test --verbose
|
|
12
.github/workflows/format.yml
vendored
Normal file
12
.github/workflows/format.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
name: Format
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
all:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: hecrj/setup-rust-action@v2
|
||||||
|
with:
|
||||||
|
components: rustfmt
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Check format
|
||||||
|
run: cargo fmt --all -- --check --verbose
|
12
.github/workflows/lint.yml
vendored
Normal file
12
.github/workflows/lint.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
name: Lint
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
all:
|
||||||
|
runs-on: macOS-latest
|
||||||
|
steps:
|
||||||
|
- uses: hecrj/setup-rust-action@v2
|
||||||
|
with:
|
||||||
|
components: clippy
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Check lints
|
||||||
|
run: cargo clippy --workspace --no-deps
|
25
.github/workflows/test.yml
vendored
Normal file
25
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Test
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
all:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
env:
|
||||||
|
RUSTFLAGS: --deny warnings
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
|
rust: [stable, beta]
|
||||||
|
steps:
|
||||||
|
- uses: hecrj/setup-rust-action@v2
|
||||||
|
with:
|
||||||
|
rust-version: ${{ matrix.rust }}
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Install dependencies
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: |
|
||||||
|
export DEBIAN_FRONTED=noninteractive
|
||||||
|
sudo apt-get -qq update
|
||||||
|
sudo apt-get install -y libxkbcommon-dev
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
cargo test --verbose --workspace
|
Loading…
Add table
Add a link
Reference in a new issue