mirror of
https://git.ahines.net/joeyahines/Albatross.git
synced 2026-05-08 08:02:13 +00:00
29 lines
759 B
YAML
29 lines
759 B
YAML
name: Build and Test Formaty
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install Task
|
|
uses: go-task/setup-task@v2
|
|
with:
|
|
repo-token: ${{ secrets.TASK_GITHUB_API_TOKEN }}
|
|
- uses: actions/checkout@v2
|
|
- name: Stable with rustfmt and clippy
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
components: rustfmt, clippy
|
|
- name: Lint Code
|
|
run: task check
|
|
- name: Build
|
|
run: task build
|
|
- name: Run Unit Tests
|
|
run: task test
|
|
- name: Upload Built Binary
|
|
uses: christopherHX/gitea-upload-artifact@v4
|
|
with:
|
|
name: formaty
|
|
path: target/debug/formaty |