Add bors
This commit is contained in:
parent
c7405f6912
commit
15b5d39cec
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
|
@ -1,17 +1,25 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
branches: [main, staging, trying]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
# Needed for tests to pass
|
||||
qbittorrent:
|
||||
image: linuxserver/qbittorrent:4.4.3
|
||||
ports:
|
||||
- 8080:8080
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
@ -27,14 +35,21 @@ jobs:
|
|||
profile: minimal
|
||||
override: true
|
||||
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --verbose
|
||||
|
||||
- name: Run tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --workspace
|
||||
args: --workspace --verbose
|
||||
|
||||
fmt:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
@ -52,7 +67,8 @@ jobs:
|
|||
args: --all -- --check
|
||||
|
||||
clippy:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
|
8
.github/workflows/extra.yml
vendored
8
.github/workflows/extra.yml
vendored
|
@ -1,13 +1,19 @@
|
|||
name: Extra
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
# Need to have the same name as where this dependency is used,
|
||||
# otherwise the cache key won't be the same.
|
||||
release:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# build and cache this here in order to reuse it's cache in feature branches
|
||||
- name: Install cargo-edit
|
||||
|
|
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
|
@ -1,13 +1,20 @@
|
|||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- main
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
tag:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
should_publish: ${{ steps.create-and-push-tag.outputs.should_publish }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
@ -32,9 +39,11 @@ jobs:
|
|||
echo "The result is: ${{ steps.create-and-push-tag.outputs.should_publish }}"
|
||||
|
||||
publish:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs: tag
|
||||
if: ${{ needs.tag.outputs.should_publish == 'true' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
|
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -1,11 +1,18 @@
|
|||
name: Prepare new release
|
||||
|
||||
on:
|
||||
create:
|
||||
branches:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
if: "startsWith(github.ref, 'refs/heads/create_release/')"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user