-
Notifications
You must be signed in to change notification settings - Fork 157
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
1 changed file
with
53 additions
and
55 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 |
---|---|---|
|
@@ -55,58 +55,56 @@ jobs: | |
cd _testrun | ||
npm run test | ||
tests-wsl: | ||
defaults: | ||
run: | ||
shell: wsl-bash {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ windows-latest ] | ||
nodejs: [ 16 ] | ||
contract: [ js, rust ] | ||
frontend: [ react, vanilla, none ] | ||
tests: [ js, rust ] | ||
exclude: | ||
- contract: js | ||
- tests: js | ||
runs-on: ${{ matrix.platform }} | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Setup WSL | ||
uses: Vampire/[email protected] | ||
with: | ||
distribution: Ubuntu-22.04 | ||
- uses: actions/checkout@v2 | ||
- name: Setup node | ||
run: | | ||
sudo apt-get install curl | ||
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - | ||
sudo apt-get install -y nodejs | ||
- name: Install modules | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Scaffold template | ||
run: | | ||
node index.js _testrun --contract ${{ matrix.contract }} --frontend ${{ matrix.frontend }} --tests ${{ matrix.tests }} --install | ||
- name: Build template | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
env: | ||
NEAR_ENV: ci | ||
IS_GITHUB_ACTION: true | ||
run: | | ||
cd _testrun | ||
npm run build | ||
- name: Test template | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
env: | ||
NEAR_ENV: ci | ||
IS_GITHUB_ACTION: true | ||
run: | | ||
cd _testrun | ||
npm run test | ||
# tests-wsl: | ||
# defaults: | ||
# run: | ||
# shell: wsl-bash {0} | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# platform: [ windows-latest ] | ||
# nodejs: [ 16 ] | ||
# contract: [ js, rust ] | ||
# frontend: [ react, vanilla, none ] | ||
# tests: [ js, rust ] | ||
# exclude: | ||
# - contract: js | ||
# - tests: js | ||
# runs-on: ${{ matrix.platform }} | ||
# timeout-minutes: 60 | ||
# steps: | ||
# - name: Setup WSL | ||
# uses: Vampire/[email protected] | ||
# with: | ||
# distribution: Ubuntu-22.04 | ||
# - uses: actions/checkout@v2 | ||
# - name: Setup node | ||
# run: | | ||
# sudo apt-get install curl | ||
# curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - | ||
# sudo apt-get install -y nodejs | ||
# - name: rust-toolchain | ||
# uses: actions-rs/[email protected] | ||
# with: | ||
# toolchain: stable | ||
# - name: Install modules | ||
# run: | | ||
# npm install | ||
# npm run build | ||
# - name: Scaffold template | ||
# run: | | ||
# node index.js _testrun --contract ${{ matrix.contract }} --frontend ${{ matrix.frontend }} --tests ${{ matrix.tests }} --install | ||
# - name: Build template | ||
# env: | ||
# NEAR_ENV: ci | ||
# IS_GITHUB_ACTION: true | ||
# run: | | ||
# cd _testrun | ||
# npm run build | ||
# - name: Test template | ||
# env: | ||
# NEAR_ENV: ci | ||
# IS_GITHUB_ACTION: true | ||
# run: | | ||
# cd _testrun | ||
# npm run test |