-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (34 loc) · 996 Bytes
/
main.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
name: CI
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: true
cache-workspaces: true
components: clippy, rustfmt
toolchain: stable
- name: 'Install dependencies: Node'
run: yarn
- name: 'Install dependencies: Rust'
run: cargo fetch
- name: 'Install dependencies: wasm-pack'
run: cargo install wasm-pack
- name: 'Install dependencies: typeshare'
run: cargo install typeshare-cli
- name: 'Install dependencies: wasm32-unknown-unknown'
run: rustup target add wasm32-unknown-unknown
- name: 'Build'
run: yarn build
- name: 'Lint'
run: yarn lint
- name: 'Test'
run: yarn test:ci
- name: 'Deploy'
run: 'yarn firebase deploy --token ${{ secrets.FIREBASE_TOKEN }}'