This commit is contained in:
15
.gitea/workflows/test_rust.yml
Normal file
15
.gitea/workflows/test_rust.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Test Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build Docker image for testing
|
||||
run: docker build -f Dockerfile.test -t configotron-rust-test .
|
||||
|
||||
- name: Run tests in Docker container
|
||||
run: docker run --rm configotron-rust-test
|
||||
10
Dockerfile.test
Normal file
10
Dockerfile.test
Normal file
@@ -0,0 +1,10 @@
|
||||
# Use the official Rust image as the base
|
||||
FROM rust:latest
|
||||
|
||||
WORKDIR /tester
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN cargo fetch
|
||||
|
||||
CMD ["cargo", "test"]
|
||||
Reference in New Issue
Block a user