Skip to content

Commit

Permalink
Upgrade GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffo99 committed Sep 13, 2023
1 parent ba42c1c commit 28daf88
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 86 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/check.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/publish.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Release new version"

on:
# Creation of a new tag starting with v
push:
tags:
- "v*"

jobs:
ghcrio:
uses: Steffo99/.github/.github/workflows/buildrelease-docker.yml@main
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Test suite"

on:
# Modification of a project file in the main branch
push:
branches:
- main
paths:
- "src/**"
- "tests/**"
- "benches/**"
- "examples/**"
- "Cargo.toml"
- "Cargo.lock"
# Pull request to the main branch modifying a project file
pull_request:
branches:
- main
paths:
- "src/**"
- "tests/**"
- "benches/**"
- "examples/**"
- "Cargo.toml"
- "Cargo.lock"
# Triggered by a new release
workflow_call:

env:
CARGO_TERM_COLOR: always

jobs:
clippy:
uses: Steffo99/.github/.github/workflows/test-cargo-clippy.yml@main

test:
uses: Steffo99/.github/.github/workflows/test-cargo-test.yml@main

0 comments on commit 28daf88

Please sign in to comment.