Skip to content

Commit

Permalink
- fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhr committed Aug 3, 2022
1 parent 6475abd commit 2e75dea
Showing 1 changed file with 53 additions and 55 deletions.
108 changes: 53 additions & 55 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2e75dea

Please sign in to comment.