Skip to content

Commit

Permalink
Set up Github Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daskol committed Aug 24, 2024
1 parent 7c13927 commit 4baf5d8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Continuous Integration
on: [push, pull_request, merge_group]

env:
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"

jobs:
linting:
name: Lint and format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --workspace --all-targets --all-features
- run: cargo doc --workspace --no-deps
- run: cargo fmt --check --all

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --no-run
- run: cargo test --workspace --no-fail-fast
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ repos:
rev: v1.1.0
hooks:
- id: fmt
- id: check
- id: clippy
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Typstd

![Linting and testing][1]

[1]: https://github.com/daskol/typstd/actions/workflows/on-push.yml/badge.svg

## Overview

**Typstd** is a pretty simple language server for [Typst][1] markup language.
**Typstd** is a pretty simple language server for [Typst][2] markup language.
Its distinctive feature is workspace management and completion for global
objects which are defined out of scope of text document in focus (e.g.
bibliography references).

[1]: https://github.com/typst/typst
[2]: https://github.com/typst/typst

### Workspace

Expand Down

0 comments on commit 4baf5d8

Please sign in to comment.