setup gitea action workflows
Build and test / check (push) Failing after 1m29s Details
Build and test / build (push) Successful in 1m55s Details
Build and test / test (push) Successful in 1m57s Details

This commit is contained in:
Oystein Kristoffer Tveit 2024-04-30 00:55:43 +02:00
parent 75645c5880
commit 7bcd3fc1ec
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,64 @@
name: "Build and test"
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest-personal
steps:
- uses: actions/checkout@v3
- name: Install latest nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --all-features --verbose
check:
runs-on: ubuntu-latest-personal
steps:
- uses: actions/checkout@v3
- name: Install latest nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Check code format
run: cargo fmt -- --check
- name: Check clippy
run: cargo clippy --all-features -- --deny warnings
test:
runs-on: ubuntu-latest-personal
steps:
- uses: actions/checkout@v3
- name: Install latest nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --all-features --verbose