-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Deploy Demo to GitHub Pages | ||
name: build | ||
|
||
on: | ||
push: | ||
|
@@ -19,24 +19,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Delete demo/pkg symlink | ||
- name: delete symlink | ||
run: rm -fr demo/pkg | ||
|
||
- name: Setup Rust Toolchain | ||
uses: actions-rust-lang/setup-rust@v1 | ||
- name: setup rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
|
||
- name: Install wasm-pack | ||
- name: install build wasm-pack | ||
uses: qmaru/[email protected] | ||
with: | ||
version: '0.11.1' | ||
version: 'latest' | ||
|
||
- name: Build Rust Miner | ||
- name: build wasm | ||
run: | | ||
bash ./scripts/build-notemine-wasm.sh | ||
|
@@ -45,8 +45,14 @@ jobs: | |
# with: | ||
# node-version: '20' | ||
|
||
- name: Install Dependencies | ||
- name: install | ||
run: yarn install | ||
|
||
- name: Build with Webpack | ||
run: yarn build | ||
- name: webpack | ||
run: yarn build | ||
|
||
- name: uplooad artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: notemine-build | ||
path: ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
name: coverage | ||
on: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: ["docs"] | ||
branches: ["main"] | ||
types: | ||
- completed | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
- name: Install | ||
run: yarn install | ||
- name: Test and Coverage | ||
run: yarn coverage | ||
- name: Update Coverage Badge | ||
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) | ||
uses: we-cli/coverage-badge-action@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters