Skip to content

testing: add more test(s) #12

testing: add more test(s)

testing: add more test(s) #12

Workflow file for this run

name: Rust
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up linker
run: docker build -t 860x9/rust_nuggets:latest .
- name: Run tests in docker container
run: docker run --rm 860x9/rust_nuggets cargo test --release --verbose
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to Docker Hub
run: docker push 860x9/rust_nuggets:latest