FeDirect/.forgejo/workflows/ci.yaml

25 lines
699 B
YAML
Raw Normal View History

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:35:17 +00:00
run: apk add curl gcc deno git nodejs pkgconfig openssl openssl-dev
- name: download Rustup
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
- name: configure new path
run: source $HOME/.cargo/env
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:36:15 +00:00
run: ~/.cargo/bin/cargo build --verbose
2025-02-03 21:56:13 +01:00
- name: Run unit tests
2025-02-03 22:36:15 +00:00
run: ~/.cargo/bin/cargo test --verbose