Skip to content

Commit

Permalink
Let's just use GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Sushisource committed Nov 21, 2023
1 parent 60a14cf commit b64e239
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 57 deletions.
57 changes: 0 additions & 57 deletions .buildkite/pipeline.yml

This file was deleted.

88 changes: 88 additions & 0 deletions .github/workflows/per-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Per merge CI

on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- master

jobs:
build-and-test:
name: "Format, docs, and lint"
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: rustup component add rustfmt clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: doc
args: --workspace --all-features --no-deps
- uses: actions-rs/cargo@v1
with:
command: lint
- uses: actions-rs/cargo@v1
with:
command: test-lint

test:
name: Unit Tests
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test -- --include-ignored
- uses: actions/upload-artifact@v3
with:
name: coverage-report
path: tarpaulin-report.html
- uses: actions/upload-artifact@v3
with:
name: state-machine-coverage
path: machine_coverage/

fmt:
name: Integ tests
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: integ-test

0 comments on commit b64e239

Please sign in to comment.