Skip to content

Commit

Permalink
Replace CI lint, build, test Rust workflows
Browse files Browse the repository at this point in the history
This removes the Rust docker-based CI workflows which no longer work due
to reliance on an old splinter-dev docker image.

Signed-off-by: Shawn T. Amundson <[email protected]>
  • Loading branch information
vaporos committed Jan 29, 2024
1 parent 0a2ea75 commit 84c5562
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 112 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/0-6-lint-splinter.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/0-6-unit-test-splinter.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright 2021 Cargill Incorporated
# Copyright 2022-2024 Bitwise IO, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Rust

on:
push:
branches: [ 0-6 ]
pull_request:
branches: [ 0-6 ]
schedule:
- cron: "0 10 * * *"
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

concurrency:
group: "${{ github.ref }}-${{ github.workflow }}"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Print rustc version
run: rustc --version
- name: Install Just
run: sudo snap install --edge --classic just
- name: Install apt packages
run: sudo apt-get install -y -q libzmq3-dev
- name: Install protoc
run: |
curl -OLsS https://github.com/google/protobuf/releases/download/v3.20.0/protoc-3.20.0-linux-x86_64.zip
unzip protoc-3.20.0-linux-x86_64.zip -d protoc3
rm protoc-3.20.0-linux-x86_64.zip
- name: Lint
run: PATH=$PATH:$(pwd)/protoc3/bin just lint
- name: Build
run: PATH=$PATH:$(pwd)/protoc3/bin just build
- name: Run tests
run: PATH=$PATH:$(pwd)/protoc3/bin just test
13 changes: 0 additions & 13 deletions docker/compose/run-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@ version: "3.7"

services:

lint-splinter:
build:
context: ../
dockerfile: ./lint.dockerfile
args:
- http_proxy
- https_proxy
- no_proxy
image: lint-splinter:${ISOLATION_ID}
volumes:
- ../../:/project/splinter
command: just lint

lint-gameroom-client:
build:
context: ../../
Expand Down
16 changes: 0 additions & 16 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ ci:
just ci-lint-client
just ci-lint-dockerfiles
just ci-lint-openapi
just ci-lint-splinter
just ci-shellcheck
just ci-test
just ci-test-gameroom

ci-lint-client:
Expand All @@ -72,13 +70,6 @@ ci-lint-client:
ci-lint-dockerfiles: lint-dockerfiles

ci-lint-splinter:
#!/usr/bin/env sh
set -e
docker-compose -f docker/compose/run-lint.yaml build lint-splinter
docker-compose -f docker/compose/run-lint.yaml up \
--abort-on-container-exit lint-splinter
ci-lint-openapi: lint-openapi

ci-shellcheck:
Expand All @@ -88,13 +79,6 @@ ci-shellcheck:
docker run -t --rm -v $(pwd):/mnt koalaman/shellcheck:stable \
cli/packaging/ubuntu/completions/splinter
ci-test:
#!/usr/bin/env sh
set -e
docker-compose -f tests/test-splinter.yaml build unit-test-splinter
docker-compose -f tests/test-splinter.yaml up \
--abort-on-container-exit unit-test-splinter
ci-test-gameroom: test-gameroom

ci-test-gameroom-ui: test-gameroom-ui
Expand Down
31 changes: 0 additions & 31 deletions tests/test-splinter.yaml

This file was deleted.

0 comments on commit 84c5562

Please sign in to comment.