1 parent 317e9cf commit 697bf2eCopy full SHA for 697bf2e
1 file changed
.github/workflows/test.yml .github/workflows/ci.yml.github/workflows/test.yml renamed to .github/workflows/ci.yml
@@ -1,4 +1,4 @@
1
-name: Tests
+name: CI
2
3
on:
4
push:
@@ -28,3 +28,25 @@ jobs:
28
29
- name: Run tests
30
run: cargo test
31
+
32
+ docker:
33
+ runs-on: ubuntu-latest
34
+ steps:
35
+ - uses: actions/checkout@v4
36
37
+ - name: Set up Docker Buildx
38
+ uses: docker/setup-buildx-action@v3
39
40
+ - name: Build Docker image
41
+ uses: docker/build-push-action@v5
42
+ with:
43
+ context: .
44
+ load: true
45
+ tags: rustymcpriceface:test
46
47
+ - name: Verify Docker image runs
48
+ run: |
49
+ docker run -d --name test-container -e DISCORD_TOKEN_BTC=test rustymcpriceface:test
50
+ sleep 10
51
+ docker logs test-container
52
+ docker rm -f test-container
0 commit comments