-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (56 loc) · 1.54 KB
/
tests.yaml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Tests
on: [pull_request]
jobs:
Golang:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
check-latest: true
cache: true
- name: Run Tests
run: go test -v ./...
Rust:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo check
run: cargo check
- name: Add wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
- name: Cargo check wasm32-unknown-unknown
run: cargo check --target wasm32-unknown-unknown
- name: Run Tests
run: cargo test
Typescript:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- name: Cache the Node Modules Directory
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('package.json') }}
- name: Install Node Dependencies with NPM
run: npm install
- name: Run Tests
run: npm run test