-
-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (38 loc) · 860 Bytes
/
test.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
30
31
32
33
34
35
36
37
38
39
40
name: test
on:
push:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- windows-latest
- ubuntu-latest
name: Testing on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
# Checkout repo
- uses: actions/checkout@v4
# Setup Node.js
- uses: actions/setup-node@v4
with:
node-version: 20
# Install npm deps
- name: Install npm dependencies
run: npm install --no-audit
# Build Vue frontend
- name: Build frontend
run: npm run build
# Set up Rust and Cargo
- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.78.0
# Run tests
- name: Run tests
run: cargo test-backend