build(deps-dev): bump @types/node from 18.6.3 to 20.4.8 #198
Workflow file for this run
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
name: Tests E2E | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
types: [ opened, reopened ] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e: | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ ubuntu-latest, macos-latest ] | |
nodejs: [ 16 ] | |
contract: [ js, rust ] | |
frontend: [ react, vanilla, none ] | |
tests: [ js, rust ] | |
# exclude: | |
# - frontend: vanilla | |
# - frontend: none | |
# include: | |
# - contract: js | |
# frontend: vanilla | |
# tests: js | |
# - contract: js | |
# frontend: none | |
# tests: js | |
runs-on: ${{ matrix.platform }} | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.nodejs }} | |
- name: Prepare | |
run: | | |
mkdir -p ~/.near-config | |
echo "{\"trackingEnabled\": false,\"trackingAccountID\": false}" >| ~/.near-config/settings.json | |
- 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: Deploy template | |
# env: | |
# NEAR_ENV: ci | |
# IS_GITHUB_ACTION: true | |
# run: | | |
# cd _testrun | |
# npm run deploy | |
- name: Test template | |
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 |