feat(servlets): add obsidian plugin #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
targets: wasm32-unknown-unknown, wasm32-wasi | |
- name: Add wasm32-wasip1 target (can be moved to list above when the target is added to toolchain action above) | |
run: rustup target add wasm32-wasip1 | |
- name: Install just | |
uses: extractions/setup-just@v1 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.23' | |
- name: Install TinyGo | |
run: | | |
wget https://github.com/tinygo-org/tinygo/releases/download/v0.34.0/tinygo_0.34.0_amd64.deb | |
sudo dpkg -i tinygo_0.34.0_amd64.deb | |
- name: Install extism-js | |
run: | | |
curl -L https://raw.githubusercontent.com/extism/js-pdk/main/install.sh | bash | |
- name: Install xtp CLI | |
run: | | |
curl -L https://static.dylibso.com/cli/install.sh -s | bash | |
- name: Build and test all the servlets | |
run: | | |
just build | |
just test |