Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLATFORM-1298]: Move CI/CD to GHA #75

Merged
merged 14 commits into from
Sep 26, 2023
269 changes: 0 additions & 269 deletions .drone.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CD

on:
release:
types: [published]

env:
CARGO_TERM_COLOR: always

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install cargo-release
uses: taiki-e/install-action@v2
with:
tool: [email protected]
- name: login
run: cargo login "$CARGO_AUTH_KEY"
env:
CARGO_AUTH_KEY: ${{ secrets.CARGO_AUTH_KEY }}
thobianchi marked this conversation as resolved.
Show resolved Hide resolved
- name: publish
run: cargo release publish --no-confirm --allow-branch "*" --workspace --all-features --execute
40 changes: 40 additions & 0 deletions .github/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
lint:
# Avoid duplicate jobs on PR from a branch on the same repo
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

name: "Continuous Integration / lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --workspace --all-features
- name: cargo fmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --workspace --all-features -- -D warnings
- name: Build docs
run: cargo doc --document-private-items --workspace --all-features --no-deps
env:
RUSTDOCFLAGS: -Dwarnings
cpiemontese marked this conversation as resolved.
Show resolved Hide resolved
test:
# Avoid duplicate jobs on PR from a branch on the same repo
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

name: "Continuous Integration / test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Run tests for no features
run: cargo test --all
- name: Run tests with toggle feature
run: cargo test --all --features toggle
36 changes: 0 additions & 36 deletions deploy/build

This file was deleted.