forked from parcel-bundler/lightningcss
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 743 Bytes
/
test.yml
File metadata and controls
33 lines (31 loc) · 743 Bytes
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
name: test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo fmt
- run: cargo test --all-features
test-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: bahmutov/npm-install@v1.8.32
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: yarn build
- run: yarn test