2025-02-03 22:12:40 +01:00
|
|
|
name: Build & Test
|
2025-02-03 21:56:13 +01:00
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-run:
|
2025-02-03 21:09:59 +00:00
|
|
|
runs-on: docker
|
2025-02-03 22:26:07 +01:00
|
|
|
container:
|
2025-02-03 22:12:21 +00:00
|
|
|
image: alpine
|
2025-02-03 21:56:13 +01:00
|
|
|
steps:
|
2025-02-03 22:12:21 +00:00
|
|
|
- name: Get Dependancies
|
2025-02-03 22:21:31 +00:00
|
|
|
run: apk add rustup deno git nodejs pkgconfig openssl openssl-dev
|
|
|
|
- name: Install Rust
|
2025-02-03 22:23:06 +00:00
|
|
|
run: /usr/bin/rustup-init -y
|
2025-02-03 21:56:13 +01:00
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
deno-version: v2.x
|
|
|
|
- name: Build using Cargo
|
2025-02-03 22:28:00 +00:00
|
|
|
run: ~/.cargo/bin/cargo build --verbose
|
2025-02-03 21:56:13 +01:00
|
|
|
- name: Run unit tests
|
2025-02-03 22:28:00 +00:00
|
|
|
run: ~/.cargo/bin/cargo test --verbose
|