Skip to content

Commit

Permalink
Migrate rust CI tests to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Jun 22, 2023
1 parent 560d37f commit 328e0d0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .circleci/config.yml
Expand Up @@ -94,27 +94,6 @@ jobs:
DOCKER_BUILD_ARGUMENTS="--cache-from securedrop-test-focal-py3:${fromtag:-latest}" securedrop/bin/dev-shell \
bash -c "/opt/venvs/securedrop-app-code/bin/pip3 install --require-hashes -r requirements/python3/develop-requirements.txt && make -C .. lint"
rust:
# Keep version in sync with rust-toolchain.toml
docker:
- image: rust:1.69.0
environment:
# TODO: Remove after we're on Rust 1.70
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: "sparse"
steps:
- checkout
- run:
name: Install dependencies
command: |
apt-get update && apt-get install make --yes
rustup component add rustfmt
rustup component add clippy
- run:
name: Lint and test Rust code
command: |
make rust-lint
make rust-test
app-tests:
machine:
image: ubuntu-2004:202010-01
Expand Down Expand Up @@ -359,10 +338,6 @@ workflows:
context:
- circleci-slack
<<: *slack-fail-post-step
- rust:
context:
- circleci-slack
<<: *slack-fail-post-step
- app-tests:
filters:
branches:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -5,6 +5,25 @@ defaults:
shell: bash

jobs:
rust:
runs-on: ubuntu-latest
# Keep version in sync with rust-toolchain.toml
container: rust:1.69.0
env:
# TODO: Remove after we're on Rust 1.70
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: "sparse"
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apt-get update && apt-get install make --yes
rustup component add rustfmt
rustup component add clippy
- name: Lint and test Rust code
run: |
make rust-lint
make rust-test
updater-gui-tests:
runs-on: ubuntu-latest
container: debian:bullseye
Expand Down

0 comments on commit 328e0d0

Please sign in to comment.