-
Notifications
You must be signed in to change notification settings - Fork 47
36 lines (34 loc) · 1018 Bytes
/
build-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
name: build-ci
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: "Build and Test"
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: bahmutov/npm-install@v1.6.0
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: wasm32-unknown-unknown
- uses: jetli/wasm-bindgen-action@v0.1.0
with:
version: '0.2.88'
- run: rustup target add wasm32-unknown-unknown
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
- run: npm run build
- run: npm run test-cov
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v2.2.1
with:
github-token: ${{ github.token }}
files: ./packages/diffhtml/coverage/lcov.info ./packages/diffhtml-components/coverage/lcov.info