-
-
Notifications
You must be signed in to change notification settings - Fork 31
29 lines (26 loc) · 794 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
components: clippy,rustfmt
- name: Install wasm-pack
uses: jetli/[email protected]
- name: Run tests in Node.js
run: wasm-pack test --node
- name: Run tests in Chrome
run: wasm-pack test --headless --chrome
- name: Run tests in Firefox
run: wasm-pack test --headless --firefox
- name: Clippy checks
run: cargo clippy --all-targets -- -D warnings
- name: Format
run: cargo fmt
- name: Commit changes if any
uses: stefanzweifel/git-auto-commit-action@v4