From b64e2396b3b5312a41485e22c04cf9992cc9ac3b Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Tue, 21 Nov 2023 10:23:59 -0800 Subject: [PATCH] Let's just use GHA --- .buildkite/pipeline.yml | 57 ----------------------- .github/workflows/per-pr.yml | 88 ++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 57 deletions(-) delete mode 100644 .buildkite/pipeline.yml create mode 100644 .github/workflows/per-pr.yml diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml deleted file mode 100644 index 8b6053933..000000000 --- a/.buildkite/pipeline.yml +++ /dev/null @@ -1,57 +0,0 @@ -steps: - - label: "fmt & doc" - agents: - queue: "default" - docker: "*" - command: "cargo fmt --all -- --check && cargo doc --workspace --all-features --no-deps" - timeout_in_minutes: 15 - plugins: - - docker-compose#v4.15.0: - run: unit-test - config: - - .buildkite/docker/docker-compose.yaml - - .buildkite/docker/docker-compose-ci.yaml - env: - - RUSTDOCFLAGS=-Dwarnings - - label: "lint" - agents: - queue: "default" - docker: "*" - command: "cargo lint && cargo test-lint" - timeout_in_minutes: 15 - plugins: - - docker-compose#v4.15.0: - run: unit-test - config: - - .buildkite/docker/docker-compose.yaml - - .buildkite/docker/docker-compose-ci.yaml - - label: "test" - agents: - queue: "default" - docker: "*" - command: "cargo test -- --include-ignored" - artifact_paths: - - "tarpaulin-report.html" - - "machine_coverage/*" - timeout_in_minutes: 15 - plugins: - - docker-compose#v4.15.0: - run: unit-test - config: - - .buildkite/docker/docker-compose.yaml - - .buildkite/docker/docker-compose-ci.yaml - - label: "integ-test" - agents: - queue: "default" - docker: "*" - env: - INTEG_SERVER_TYPE: docker - command: "cargo test --test integ_tests" - timeout_in_minutes: 15 - plugins: - - docker-compose#v4.15.0: - run: integ-test - config: - - .buildkite/docker/docker-compose.yaml - - .buildkite/docker/docker-compose-ci.yaml - - wait diff --git a/.github/workflows/per-pr.yml b/.github/workflows/per-pr.yml new file mode 100644 index 000000000..1f30ad731 --- /dev/null +++ b/.github/workflows/per-pr.yml @@ -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 \ No newline at end of file