-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (38 loc) · 968 Bytes
/
ci.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
41
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build
# TODO: Run CI on all three platforms.
runs-on: ubuntu-latest
timeout-minutes: 50
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup update stable
- name: Check formatting
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Spell check
uses: crate-ci/typos@master
- name: Build
run: cargo build
- name: Test
run: cargo test
timeout-minutes: 20
- name: Checkout test262 submodule
run: git submodule update --init
- name: Test262
run: cargo run --bin test262 -- --noprogress
timeout-minutes: 15
- name: Build binaries and examples
run: cargo build --bins --examples