-
Notifications
You must be signed in to change notification settings - Fork 40
41 lines (41 loc) · 1.22 KB
/
build-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
41
name: build-test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
build-test:
name: 'Build and test'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.79.0
targets: wasm32-unknown-unknown
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.MACHINEUSER_PRIVATE_KEY }}
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install Rush
run: npm install -g @microsoft/rush
- name: Install wasm-pack
run: |
rustup target add wasm32-unknown-unknown
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install project dependencies
run: rush install
- name: Build packages
run: rush build:release --only tag:production --only tag:tooling
- name: Lint packages
run: rush lint
- name: Run integration tests
env:
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }}
BROWSERSTACK_KEY: ${{ secrets.BROWSERSTACK_KEY }}
run: rush test