Skip to content

Commit 3cf5552

Browse files
committed
Run tests on GitHub
1 parent edf0da5 commit 3cf5552

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ updates:
33
- package-ecosystem: cargo
44
directory: "/"
55
schedule:
6-
interval: daily
6+
interval: weekly
77
time: "08:00"
88
open-pull-requests-limit: 10

.github/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: tests
2+
# Originally from: https://doc.rust-lang.org/cargo/guide/continuous-integration.html#github-actions
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build_and_test:
14+
name: WASM Game of Life - latest
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
toolchain:
19+
- stable
20+
# - beta
21+
# - nightly
22+
steps:
23+
- uses: actions/checkout@v4
24+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
25+
- uses: Swatinem/rust-cache@v2
26+
- run: cargo install wasm-pack
27+
- run: wasm-pack test --firefox --headless

0 commit comments

Comments
 (0)