This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
Merge pull request #33 from fermyon/update-wit-parser #84
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: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: Installs needed targets | |
run: | | |
rustup target add wasm32-unknown-unknown wasm32-wasi | |
- uses: acifani/setup-tinygo@v1 | |
with: | |
tinygo-version: '0.27.0' | |
- name: Formatting check | |
run: cargo fmt --all -- --check | |
- name: Run tests | |
run: cargo test --all | |