generated from Oliver/discord-bot-template
trying new git workflow
This commit is contained in:
parent
460e832cbf
commit
09df72de7b
17
.gitea/workflows/clippy.yaml
Normal file
17
.gitea/workflows/clippy.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
name: Test Rust project
|
||||
on: [push]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
rust: [stable, nightly]
|
||||
|
||||
steps:
|
||||
- uses: hecrj/setup-rust-action@v2
|
||||
with:
|
||||
rust-version: ${{ matrix.rust }}
|
||||
- uses: actions/checkout@master
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
@ -1,25 +0,0 @@
|
||||
name: Cargo Build & Test
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
name: Rust project - latest
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
toolchain:
|
||||
- nightly
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
|
||||
- run: . "$HOME/.cargo/env"; rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||
- run: . "$HOME/.cargo/env"; cargo build --verbose
|
||||
- run: . "$HOME/.cargo/env"; cargo build test --verbose
|
||||
|
Loading…
Reference in New Issue
Block a user